Closed Liviali155 closed 4 years ago
This issue also can be reproduced on sof v1.5-rc2+PR2750 after download sof-hda-asrc-2ch.tplg rename to sof-hda-generic-2ch.tplg Kernel:f9b87470 Sof-dev fw: 66e20171 https://github.com/thesofproject/sof/releases/tag/v1.5-rc1+PR2750 UCM2(https://github.com/thesofproject/alsa-ucm-conf/tree/master/ucm2/sof-hda-dsp)
Interesting, it would appear FW is unable to allocate 1660 bytes for frame processing in asrc.
Sounds like running out of 2 kB pool. I don't understand how the fail is not propagated and streaming aborted.
I checked from code the ASRC prepare() flow and the -ENOMEM should abort the playback. I noticed a minor mistake in the previous allocation fail handling (lines 622-630) and will do a fix PR that avoids free of null pointer by changing the goto into err instead of err_free_buf. But it won't help this issue.
@singalsu sound like we need to increase pool size here on CML
@lgirdwood Yep, that should avoid the error. I'll test here, hope it happens with a CFL too that I can use.
I tried on CI devices CML laptop with onboard codec ALC3204 in HDA which is ubuntu 18.04 with lastest sof/dev(f17b96ae) +master(504ec438),error not seen But I used my own CML laptop with onboard codec ALC3204 in HDA mode which is ubuntu 20.04 with the same kernel and fw,issue can be reproduced Seems this issue only occured on ubuntu20.04
Tried with PR https://github.com/thesofproject/sof/pull/2831, error not seen
Error not seen on latest sof/dev(8dc1789e) +master(0befebb7),closed it
Describe the bug Warning message “error: ipc error for 0x60010000 size 20”occured in dmesg after bootup Just a error message,ALL the pipeline can work
To Reproduce 1.download sof-hda-asrc-2ch.tplg rename to sof-hda-generic-2ch.tplg 2.sudo reboot 3.dmesg -w
Reproduction Rate 5/5
Expected behavior There is no error message in dmesg
Impact “error: ipc error for 0x60010000 size 20” in dmesg
dmesg_error.log
```` [ 2.843718] leds platform::micmute: Setting an LED's brightness failed (-19) [ 3.312184] random: crng init done [ 3.770392] leds platform::micmute: Setting an LED's brightness failed (-19) [ 3.770405] leds platform::micmute: Setting an LED's brightness failed (-19) [ 4.237954] iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS [ 4.391044] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.391053] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.391057] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.391061] HDA Analog: ASoC: hw_params FE failed -12 [ 4.391976] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.391983] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.391987] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.391991] HDA Analog: ASoC: hw_params FE failed -12 [ 4.392871] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.392878] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.392882] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.392886] HDA Analog: ASoC: hw_params FE failed -12 [ 4.393740] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.393747] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.393752] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.393756] HDA Analog: ASoC: hw_params FE failed -12 [ 4.394595] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.394603] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.394607] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.394611] HDA Analog: ASoC: hw_params FE failed -12 [ 4.396120] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.396126] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.396130] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.396133] HDA Analog: ASoC: hw_params FE failed -12 [ 4.397025] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.397032] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.397036] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.397040] HDA Analog: ASoC: hw_params FE failed -12 [ 4.397877] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.397884] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.397889] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.397892] HDA Analog: ASoC: hw_params FE failed -12 [ 4.398741] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.398749] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.398753] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.398757] HDA Analog: ASoC: hw_params FE failed -12 [ 4.399564] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.399572] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.399577] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -12 [ 4.399581] HDA Analog: ASoC: hw_params FE failed -12 [ 4.401712] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20 [ 4.401719] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2 [ 4.401724] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -1 ````No sof error trace
Environment Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver). Kernel: {f9b87470} /sof/dev SOF: {7702288f} master Name of the topology file Topology: {sof-hda-asrc-2ch.tplg rename to sof-hda-generic-2ch.tplg} Name of the platform(s) on which the bug is observed. Platform: {CML laptop with onboard codec ALC3204 in HDA mode}
dmesg0416.log sof-logger0416.log