Repository navigation
[BUG][TGL] ipc tx error for 0x60040000(GLB_STREAM_MSG: TRIG_START) on TGL-HDA platform #3910
Copy link
Copy link
Closed
Labels
HDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionP1Blocker bugs or important featuresBlocker bugs or important featuresTGLApplies to Tiger Lake platformApplies to Tiger Lake platformbugSomething isn't workingSomething isn't working
Description
Describe the bug
This is a kernel regression and only observed on TGL-HDA platforms(TGLH_SKU0A70_HDA,TGLU_UP_HDA). It's easy to reproduce with check-signal-stop-start-capture-50.sh. The reproduction rate is 100%.
Inner test ID:16009
Bisection result points to:
a3fcf6e
a3fcf6e998a54b888f1d91c8d9438bdcbceec650 is the first bad commit
commit a3fcf6e998a54b888f1d91c8d9438bdcbceec650
Author: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Date: Mon Oct 3 14:05:38 2022 -0700
ASoC: SOF: topology: Set IPC-specific trigger order for DAI links
Add a new topology IPC op to set up DAI links and set the link trigger
order to match the expectation based on the IPC type. Note that the
link_setup op implementations for IPC3 and IPC4 are not identical and
have contrasting trigger orders for playback and capture.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
To Reproduce
~/sof-test/test-case/check-signal-stop-start.sh -m capture -c 50
Reproduction Rate
100%
Dmesg error
[ 2811.308440] kernel: snd_sof_intel_hda_common:hda_set_stream_data_offset: sof-audio-pci-intel-tgl 0000:00:1f.3: pcm: stream dir 1, posn mailbox offset is 790528
[ 2811.308497] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: pcm: trigger stream 0 dir 1 cmd 1
[ 2811.308539] kernel: snd_sof_intel_hda_common:hda_dsp_stream_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: FW Poll Status: reg[0xa0]=0x24001e successful
[ 2811.308546] kernel: snd_sof:ipc3_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 2811.309714] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60040000 (msg/reply size: 12/12): -16
[ 2811.309731] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -16
[ 2811.309738] kernel: HDA Analog: ASoC: trigger FE cmd: 1 failed: -16
[ 2811.309750] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: pcm: trigger stream 0 dir 1 cmd 0
[ 2811.309756] kernel: snd_sof:ipc3_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 2811.812644] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx timed out for 0x60050000 (msg/reply size: 12/12)
[ 2811.812665] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: preventing DSP entering D3 state to preserve context
[ 2811.812671] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump start ]------------
[ 2811.812714] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: hda irq intsts 0x00000000 intlctl 0xc0000003 rirb 00
[ 2811.812721] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: dsp irq ppsts 0x00000000 adspis 0x00000000
[ 2811.812760] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
[ 2811.812766] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump end ]------------
[ 2811.812771] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump start ]------------
[ 2811.812778] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: IPC timeout
[ 2811.812785] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (6)
[ 2811.812826] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: 0x00000005: module: ROM, state: FW_ENTERED, running
[ 2811.813244] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: unexpected fault 0x00000000 trace 0x00004000
[ 2811.813253] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump end ]------------
logger
[ 213334124.439530] ( 19.635416) c0 dai 2.15 src/audio/dai-legacy.c:616 INFO dai_config_prepare(): dma channel index 0 already configured
[ 213334974.387413] ( 849.947876) c0 ipc src/ipc/ipc3/handler.c:1606 INFO ipc: new cmd 0x60040000
[ 213335000.272829] ( 25.885416) c0 pipe 2.16 ....../pipeline-stream.c:275 INFO pipe trigger cmd 7
[ 213335032.772827] ( 32.500000) c0 zll-schedule src/schedule/zephyr_ll.c:280 INFO task add 0xbe084840 pipe-task priority 0 flags 0x0
[ 213336310.949860] ( 1278.177002) c0 eq-iir 2.11 ../audio/eq_iir/eq_iir.c:798 INFO eq_iir_trigger()
[ 213336427.929022] ( 116.979164) c0 eq-iir 2.11 ../audio/eq_iir/eq_iir.c:798 INFO eq_iir_trigger()
[ 213336452.460271] ( 24.531248) c0 hda-dma ..../intel/hda/hda-dma.c:610 ERROR hda-dmac: 6 channel 0 busy. dgcs 0x900000 status 5
[ 213336506.522769] ( 54.062496) c0 pipe 2.16 ....../pipeline-stream.c:457 ERROR pipeline_trigger_run(): ret = -16, host->comp.id = 9, cmd = 7
[ 213336548.814434] ( 42.291664) c0 pipe 2.16 ..../pipeline-schedule.c:89 ERROR pipeline_task_cmd(): failed to trigger components: -16
[ 213336594.283182] ( 45.468750) c0 zll-schedule src/schedule/zephyr_ll.c:69 INFO task complete 0xbe084840 pipe-task
[ 213336612.876931] ( 18.593750) c0 zll-schedule src/schedule/zephyr_ll.c:71 INFO num_tasks 2 total_num_tasks 2
[ 213337354.074819] ( 741.197876) c0 ipc src/ipc/ipc3/handler.c:1606 INFO ipc: new cmd 0x60050000
Environment
Kernel Branch: topic/sof-dev
Kernel Commit: 01b2f9537c03
SOF Branch: main
SOF Commit: 76e35fbec2be
Zephyr Commit: v3.2.0-rc1-2-g0956647aaf6b
TPLG:sof-hda-generic-2ch.tplg and sof-hda-generic.tplg
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
HDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionP1Blocker bugs or important featuresBlocker bugs or important featuresTGLApplies to Tiger Lake platformApplies to Tiger Lake platformbugSomething isn't workingSomething isn't working
Activity
fixup! ASoC: SOF: topology: Set IPC-specific trigger order for DAI links
fixup! ASoC: SOF: topology: Set IPC-specific trigger order for DAI links
marc-hb commentedon Oct 10, 2022
Stupid Github auto-close, let's close AFTER the next daily test run.
keqiaozhang commentedon Oct 11, 2022
Confirmed that this issue has been fixed on ADL-HDA and TGL-HDA platforms.
miRoox commentedon Oct 11, 2022
#3912 seems incorrect and might be reverted later. Reopen and let's keep an eye on it.
miRoox commentedon Oct 13, 2022
#3912 is correct. It just brought the potential problem to light.
marc-hb commentedon Oct 13, 2022
I see an XRUN bug mentioned in #3912 but new issue filed yet. Let's keep this one open as a reminder to file a new issue.
fixup! ASoC: SOF: topology: Set IPC-specific trigger order for DAI links
fixup! ASoC: SOF: topology: Set IPC-specific trigger order for DAI links
fixup! ASoC: SOF: topology: Set IPC-specific trigger order for DAI links
keqiaozhang commentedon Oct 24, 2022
This issue is not reproducible on TGL-HDA and ADL-HDA. Closing this bug.
@marc-hb , I didn't observe the XRUN issue recently, if this is still a bug to you, please let me know.
marc-hb commentedon Oct 24, 2022
@ranj063 , @ujfalusi , happy with xruns magically fixing themselves?
plbossart commentedon Oct 24, 2022
@marc-hb there's been a lot of changes on triggers with #3917, it's likely that some issues no longer occur but others show up...