Open msyrota opened 1 year ago
@thesofproject/mediatek fyi - looks like the debug filter updates are causing a panic() on mt8186. @cujomalainey fyi.
@afq984 fyi
@Zames-Chang
@tinghan-shen
@chunxu-li
@msyrota Hi,
Could you please tell us more about "Platform: mt8186"? Thanks.
Hi, @kuanhsuncheng, platform is Steelix chromebook (Lenovo 300e), ChromeOS is official 15014.0.0
Hi @msyrota
I can not reproduce DSP panic, and I add some debug log to test log filter, it woks well.
before set dai
loglevel
[ 43123849.953079] ( 21.145832) c0 dai 1.2 src/audio/dai-legacy.c:669 INFO dai_prepare()
[ 43123857.557245] ( 7.604167) c0 dai 1.2 src/audio/dai-legacy.c:633 INFO dai_config_prepare(), channel = 0
[ 43123864.640578] ( 7.083333) c0 dai 1.2 src/audio/dai-legacy.c:634 WARN dai_config_prepare(), channel = 0
[ 43123874.015578] ( 9.375000) c0 dai 1.2 src/audio/dai-legacy.c:635 ERROR dai_config_prepare(), channel = 0
[ 43123881.203078] ( 7.187500) c0 dai 1.2 src/audio/dai-legacy.c:654 INFO dai_config_prepare(): new configured dma channel index 0
[ 43123895.682244] ( 14.479166) c0 memif ...../mt8186/afe-memif.c:469 INFO memif_set_config, direction:8, afe_dir:1
[ 43123903.286410] ( 7.604167) c0 afedrv ......./mt8186/afe-drv.c:271 INFO afe_dai_get_config, id:0
[ 43123910.369743] ( 7.083333) c0 afedrv ......./mt8186/afe-drv.c:272 WARN afe_dai_get_config, id:0
[ 43123919.744743] ( 9.375000) c0 afedrv ......./mt8186/afe-drv.c:273 ERROR afe_dai_get_config, id:0
[ 43123926.203076] ( 6.458333) c0 afedrv ......./mt8186/afe-drv.c:286 INFO dai:0 get: format:0, rate:48000, channel:2
after set loglevel sof-logger -l sof-mt8186.ldc -F error="dai" -t
[ 143880265.636879] ( 5.833333) c0 ipc src/trace/trace.c:437 INFO Adaptive filtering disabled by user
[ 143880270.532712] ( 4.895833) c0 ipc src/trace/trace.c:440 INFO filter loglevel 1
[ 143880280.428545] ( 9.895833) c0 ipc src/trace/trace.c:453 INFO ret 5
[ 143880285.532711] ( 5.104167) c0 ipc src/ipc/ipc3/handler.c:927 INFO trace_filter_update for UUID key 0x4E180150, comp -1.-1 affected 5 components
only error
level dai
log shows
[ 393588504.881031] ( 20.520832) c0 pipe 1.3 ....../pipeline-params.c:346 INFO pipe prepare
[ 393588518.735197] ( 13.854166) c0 dai 1.2 src/audio/dai-legacy.c:635 ERROR dai_config_prepare(), channel = 0
[ 393588531.131030] ( 12.395833) c0 memif ...../mt8186/afe-memif.c:469 INFO memif_set_config, direction:8, afe_dir:1
[ 393588536.547697] ( 5.416667) c0 afedrv ......./mt8186/afe-drv.c:271 INFO afe_dai_get_config, id:0
[ 393588541.547697] ( 5.000000) c0 afedrv ......./mt8186/afe-drv.c:272 WARN afe_dai_get_config, id:0
[ 393588549.256030] ( 7.708333) c0 afedrv ......./mt8186/afe-drv.c:273 ERROR afe_dai_get_config, id:0
[ 393588553.526863] ( 4.270833) c0 afedrv ......./mt8186/afe-drv.c:286 INFO dai:0 get: format:0, rate:48000, channel:2
SOF: mt8186\v0.2 d3d49dc
test on
krabby:CHROMEOS_RELEASE_DESCRIPTION=15183.52.0 (Official Build) dev-channel corsola test
and
steelix: CHROMEOS_RELEASE_DESCRIPTION=15130.0.0 (Official Build) dev-channel corsola test
Describe the bug Attempting to update trace filters for any component on mt8186 causes DSP FW panic.
To Reproduce
Reproduction Rate 100%
Expected behavior Successful trace log level update.
Impact Annoyance (have to edit log levels manually and rebuild FW)
Environment 1) Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
Screenshots or console output