Repository navigation
Closed
Labels
I2SApplies to I2S bus for codec connectionApplies to I2S bus for codec connectionLNLApplies to Lunar Lake platformApplies to Lunar Lake platformMTLApplies to Meteor Lake platformApplies to Meteor Lake platformP1Blocker bugs or important featuresBlocker bugs or important featuresbugSomething isn't working as expectedSomething isn't working as expectedmulticoreIssues observed when not only core#0 is used.Issues observed when not only core#0 is used.
Description
Describe the bug
I did a pre-test on mtl-007-drop-stable branch and found this issue when recording for a long time. The reproduction rate is unclear, I'm doing the manual check now.
dmesg
[ 5728.131726] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx : 0x12010000|0x0: GLB_DELETE_PIPELINE
[ 5728.133418] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx reply: 0x32000000|0x0: GLB_DELETE_PIPELINE
[ 5728.133449] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx done : 0x12010000|0x0: GLB_DELETE_PIPELINE
[ 5728.133457] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx : 0x47000000|0x0: MOD_SET_DX [data size: 8]
[ 5728.535101] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx reply: 0x67000006|0x0: MOD_SET_DX
[ 5728.535114] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: FW reported error: 6 - Unknown error while processing the request
[ 5728.535172] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc error for msg 0x47000000|0x0
[ 5728.535194] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to disable target core: 2 for pipeline pipeline.11
[ 5728.535221] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to free connected widgets
[ 5728.535252] kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_free on 0000:00:1f.3: -22
[ 5728.535420] kernel: snd_sof:sof_pcm_close: sof-audio-pci-intel-mtl 0000:00:1f.3: pcm: close stream 2 dir 1
To Reproduce
~/sof-test/test-case/check-capture.sh -d 500 -l 1 -r 1
Reproduction Rate
50%+
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: {266ee31b71f8}
- SOF: {mtl-007-drop-stable
- Name of the topology file
- Topology: {development/sof-mtl-nocodec.tplg}
- Name of the platform(s) on which the bug is observed.
- Platform: {MTLP_RVP_NOCODEC}
Metadata
Metadata
Assignees
Labels
I2SApplies to I2S bus for codec connectionApplies to I2S bus for codec connectionLNLApplies to Lunar Lake platformApplies to Lunar Lake platformMTLApplies to Meteor Lake platformApplies to Meteor Lake platformP1Blocker bugs or important featuresBlocker bugs or important featuresbugSomething isn't working as expectedSomething isn't working as expectedmulticoreIssues observed when not only core#0 is used.Issues observed when not only core#0 is used.
Activity
keqiaozhang commentedon Dec 7, 2023
This issue can be reproduced manually and the reproduction rate is about 50%+ with stress test case.
[-][BUG] [MTL-007] FW reported error: 6 - Unknown error while processing the request [/-][+][BUG] FW reported error: 6 - Unknown error while processing the request [/+]mengdonglin commentedon Dec 8, 2023
This issue seems to be a common issue with IMR context save DISABLED + multicore in latest code base.
This issue is not only on mtl-007. It can also be reproduced on sof main branch if we disable IMR context save:
https://sof-ci.ostc.intel.com/#/result/planresultdetail/35669
case: simultaneous-playback-capture-200.sh
kv2019i commentedon Dec 8, 2023
The problem seems to relate to multicore scenarios and error in powering down a secondary core. In the original mtrace:
In a more recent case (Intel test plan 35669):
keqiaozhang commentedon Dec 8, 2023
Observed this issue on LNL-NOCODEC when testing multiple-pause-resume-50. Inner test ID:35712.
wszypelt commentedon Dec 8, 2023
@keqiaozhang does the problem also appear on mtl-006?
mengdonglin commentedon Dec 12, 2023
@wszypelt we didn't observe this issue on mtl-006
[-][BUG] FW reported error: 6 - Unknown error while processing the request [/-][+][BUG] FW reported error: 6 - Unknown error while processing the request when disabling a secondary core[/+]lgirdwood commentedon Dec 18, 2023
@abonislawski @softwarecki any insights here ? Anything we can check in SW ?
keqiaozhang commentedon Dec 20, 2023
This issue also can be reproduced on SOF main branch. Inner test ID:36158.
I also did a check on latest mtl-007-drop-stable/6d3061c. The reproduction rate is much lower, but it can still be reproduced with multiple-pipeline related cases.
RanderWang commentedon Dec 21, 2023
This is an old bug and can be reproduced two month ago although it is rare. I debug the issue and found that: the secondary core is in idle status with "waiti 0". Primary core calls arch_sched_ipi to wake up it but failed. Idc interrupt is not triggered on secondary core
BTW I did stress test on TGL and didn't found this issue
abonislawski commentedon Jan 3, 2024
I was also debugging this one, main problem is very low reproduction rate, in the end primary core will fail on timeout because secondary core stays in idle didnt enter power-down flow.
In my tests disabling memory retention also lowered reproduction rate
(Sorry, I commented but didnt click Comment before holiday break..)
jsarha commentedon Jan 18, 2024
I have hit this a few times on (Onecloud) MTL RVP while debugging #8642. E.g. the bug also happens when running multiple-pipeline test.
kv2019i commentedon Mar 22, 2024
Now fixed with latest Zephyr update #8968