Repository navigation
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 LakeApplies to Tiger LakebugSomething isn't working as expectedSomething isn't working as expected
Description
Describe the bug
Running multiple pipelines can cause DSP Panic on TGL.
To Reproduce
Scenario 1:
Playback via headset (device 0,0) and HDMI monitor (device 0,4) simultaneously.
- In terminal to run "aplay -D hw:0,0 -f dat 48California_Dreaming.wav"
- In other terminal to run "aplay -D hw:0,4 -f dat 48California_Dreaming.wav"
Scenario 2:
Playback and capture via headset simultaneously.
- In terminal to run "aplay -D hw:0,0 -f dat 48California_Dreaming.wav"
- In other terminal to run "arecord -Dhw:0,0 -fs16_le -c2 -r 48000 -vv -i test.wav"
Reproduction Rate
100%
Expected behavior
Can run multi-pipeline on TGL
Actual Result
DSP Panic will happen when starting the 2nd pipeline
Environment
Firmware: c8bc4b2 https://github.com/thesofproject/sof/commits/tgl-002-drop-stable
Kernel: intel-next kernel, tag intel-5.4-rc2-2019-10-10, commit id: fc2de5669533
tplg: sof-hda-generic.m4
platform: TGL with onboard ALC711 in HD-A mode. Connected an external monitor via microHDMI port.
Screenshots or console output
[ 565.126849] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x600a0001: GLB_STREAM_MSG: POSITION
[ 565.126869] sof-audio-pci 0000:00:1f.3: nothing to do in IPC IRQ thread
[ 565.127226] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x24001e successful
[ 565.127236] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 565.127487] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 565.127503] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=1
[ 565.127907] sof-audio-pci 0000:00:1f.3: **error : DSP panic!**
[ 565.127914] sof-audio-pci 0000:00:1f.3: panic: dsp_oops_offset 788480 offset 788480
[ 565.127932] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
[ 565.128379] sof-audio-pci 0000:00:1f.3: error: runtime exception
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 LakeApplies to Tiger LakebugSomething isn't working as expectedSomething isn't working as expected
Activity
[-][BUG][TGL] multi-pipeline failed catch 'DSP panic' in dmesg[/-][+][BUG][TGL] multi-pipeline playback or capture failed with 'DSP panic'[/+]Bin-QA commentedon Oct 14, 2019
Verify patch: https://patch-diff.githubusercontent.com/raw/thesofproject/linux/pull/1037.patch
Couldn't catch "POSTION" in dmesg keyword
This Bug still exist
jajanusz commentedon Oct 14, 2019
@Bin-QA Repro recipe is incomplete - What kernel did you use?
jajanusz commentedon Oct 14, 2019
@Bin-QA We don't work on BUGs with kernel that we don't have, if you want us to reproduce error, please give commit hash of kernel that you see error with.
slawblauciak commentedon Oct 14, 2019
Please check on a timer-driven pipeline, with SSP or SDW.
To make a pipeline timer-driven in the topology, the 11th param ('time_domain') of PIPELINE_PCM_ADD has to be set to SCHEDULE_TIME_DOMAIN_TIMER.
For reference:
dnl PIPELINE_PCM_ADD(pipeline, dnl pipe id, pcm, max channels, format, dnl period, priority, core, dnl pcm_min_rate, pcm_max_rate, pipeline_rate, dnl time_domain, sched_comp)xiulipan commentedon Oct 14, 2019
@jajanusz Can you try to dump the exception with sof-coredump-to-gdb.sh?
The exception is attached.
Bin-QA commentedon Oct 15, 2019
Add kernel configure for Kernel
config.txt
keqiaozhang commentedon Oct 17, 2019
@jajanusz
This issue is gone after applying #1955 and #1956.