Repository navigation
[BUG][IPC4] ipc error 7 for msg 0x13040004|GLB_SET_PIPELINE_STATE when testing multiple pipeline capture #6203
Copy link
Copy link
Closed
Labels
IPC errorIPC error is observedIPC error is 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 expected
Description
Describe the bug
This issue happens when testing multiple pipelines with SOF IPC4, we had a similar issue #6118 before, but only happens when testing with playback, so I file this new one to track the issue with capture.
[ 1144.198899] kernel: snd_sof:sof_ipc4_set_pipeline_state: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc4 set pipeline 4 state 3
[ 1144.198901] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx : 0x13040003|0x0: GLB_SET_PIPELINE_STATE
[ 1144.198986] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx reply: 0x33000000|0x0: GLB_SET_PIPELINE_STATE
[ 1144.198999] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx done : 0x13040003|0x0: GLB_SET_PIPELINE_STATE
[ 1144.199000] kernel: snd_sof:sof_ipc4_set_pipeline_state: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc4 set pipeline 4 state 4
[ 1144.199008] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx : 0x13040004|0x0: GLB_SET_PIPELINE_STATE
[ 1144.199157] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx reply: 0x33000007|0x0: GLB_SET_PIPELINE_STATE
[ 1144.199159] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: FW reported error: 7 - Unsupported operation requested
[ 1144.199170] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc error for msg 0x13040004|0x0
[ 1144.199171] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: failed to set state 4 for pipeline 4
[ 1144.199172] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -22
[ 1144.199174] kernel: Jack in: ASoC: trigger FE cmd: 1 failed: -22
[ 1144.199176] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: pcm: trigger stream 1 dir 1 cmd 0
[ 1144.199182] kernel: snd_sof_intel_hda_common:hda_dsp_stream_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: FW Poll Status: reg[0x80]=0x140000 successful
[ 1144.199194] kernel: snd_sof:sof_ipc4_set_pipeline_state: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc4 set pipeline 4 state 2
To Reproduce
TPLG=/lib/firmware/intel/avs-tplg/cavs-sdw.tplg MODEL=TGLU_RVP_SDW_IPC4ZPH ~/sof-test/test-case/multiple-pipeline.sh -f c -l 50
Reproduction Rate
almost 100%
TPLG
Environment
Kernel Branch: topic/sof-dev
Kernel Commit: 4e6ca75f7357
SOF Branch: main
SOF Commit: 130ea515be76
Zephyr Commit:
zephyr-v3.1.0-3042-g8e55e59c5917
2) Name of the topology file
* Topology: cavs-sdw.tplg
3) Name of the platform(s) on which the bug is observed.
* Platform: TGLU_RVP_SDW_IPC4ZPH
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
IPC errorIPC error is observedIPC error is 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 expected

Activity
[-][BUG][IPC4] ipc error for msg 0x13040004|GLB_SET_PIPELINE_STATE when testing multiple pipeline capture[/-][+][BUG][IPC4] ipc error 7 for msg 0x13040004|GLB_SET_PIPELINE_STATE when testing multiple pipeline capture[/+]kv2019i commentedon Sep 30, 2022
Caught one case of "error 7" with FW logs that show:
Let's see if we can link more occurences of "invalid cd->ramp_func" to this bug.
lgirdwood commentedon Oct 3, 2022
@kv2019i @mwasko just wondering since these are not POSIX, can we have a small look up via a macro that can also stringify the IPC4 error codes and use the dictionary ?
e.g.
[ 79.985000] <err> ipc: ipc4: 0 failed err 7: unsupported copier endpoint(I've just make up an example error code 7)
kv2019i commentedon Oct 4, 2022
@lgirdwood I've been tempted to add this but I'm a bit worried about the overhead. The kernel does stringify the errors in kernel dmesg, so we have that already.
lgirdwood commentedon Oct 5, 2022
I'm good as long as kernel can stringify.
kv2019i commentedon Oct 14, 2022
Lot of hits in IPC4 testing for:
[ 79.985000] volume: volume_prepare(): invalid cd->ramp_func
[ 79.985000] module_adapter: module_prepare() error -22: module specific prepare failed, comp_id 393217
[ 79.985000] module_adapter: module_adapter_prepare() error ffffffea: module prepare failed
Potential bugfix #6414
ranj063 commentedon Oct 18, 2022
potential fix in #6435
lgirdwood commentedon Oct 19, 2022
Now merged, can we close @keqiaozhang ?
keqiaozhang commentedon Oct 20, 2022
This issue still can be reproduced on TGLU_UP_HDA_IPC4ZPH.
http://sof-ci.sh.intel.com/#/result/planresultdetail/16530?model=TGLU_UP_HDA_IPC4ZPH&testcase=multiple-pipeline-all-50
dmesg
mtrace
keqiaozhang commentedon Oct 24, 2022
Closing this one, since this issue is not reproducible on TGLU_RVP_SDW_IPC4ZPH.
Let's track the similar issue IPC error in #6466 for TGLU_UP_HDA_IPC4ZPH.