You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] mt8195 ADSP Fatal Exception on debug build of Zephyrized SOF firmware #9933
changed the title [-][BUG] mt8195 ADSP Fatal Exception on Zephyried SOF firmware[/-][+][BUG] mt8195 ADSP Fatal Exception on debug build of Zephyried SOF firmware[/+]on Mar 28, 2025
changed the title [-][BUG] mt8195 ADSP Fatal Exception on debug build of Zephyried SOF firmware[/-][+][BUG] mt8195 ADSP Fatal Exception on debug build of Zephyrized SOF firmware[/+]on Mar 28, 2025
@andrew-mtk not seeing this yet on other platforms, but it looks like a NULL pointer deref (maybe due to a race since not seen elsewhere??) . Are you able to add more debug and root cause.
[2235940124] <err> os: ** CPU 0 EXCCAUSE 28 (load prohibited)
[2235940143] <err> os: ** PC 0x60018a31 VADDR (nil)
It's caused by enabling CONFIG_COLD_STORE_EXECUTE_DEBUG=y, which in turn enables assert_can_be_cold(). I have added check for a NULL pointer in a few places in Zephyr scheduler source code. That fixed the problem: PR# 9947
It's caused by enabling CONFIG_COLD_STORE_EXECUTE_DEBUG=y, which in turn enables assert_can_be_cold(). I have added check for a NULL pointer in a few places in Zephyr scheduler source code. That fixed the problem: PR# 9947
@lyakh can you check this - platforms with no cold storage should not crash here. Thanks !
@lyakh, I run more tests and found that platform_init() for MTK platforms call ipc_init() before scheduler_init_ll(). If I reverse the order, there is no crash.
I've pushed an updated patch.
Activity
[-][BUG] mt8195 ADSP Fatal Exception on Zephyried SOF firmware[/-][+][BUG] mt8195 ADSP Fatal Exception on debug build of Zephyried SOF firmware[/+][-][BUG] mt8195 ADSP Fatal Exception on debug build of Zephyried SOF firmware[/-][+][BUG] mt8195 ADSP Fatal Exception on debug build of Zephyrized SOF firmware[/+]lgirdwood commentedon Apr 1, 2025
@andrew-mtk not seeing this yet on other platforms, but it looks like a NULL pointer deref (maybe due to a race since not seen elsewhere??) . Are you able to add more debug and root cause.
andrew-mtk commentedon Apr 2, 2025
It's caused by enabling
CONFIG_COLD_STORE_EXECUTE_DEBUG=y, which in turn enablesassert_can_be_cold(). I have added check for a NULL pointer in a few places in Zephyr scheduler source code. That fixed the problem:PR# 9947
lgirdwood commentedon Apr 2, 2025
@lyakh can you check this - platforms with no cold storage should not crash here. Thanks !
andrew-mtk commentedon Apr 2, 2025
@lyakh, I run more tests and found that
platform_init()for MTK platforms callipc_init()beforescheduler_init_ll(). If I reverse the order, there is no crash.I've pushed an updated patch.
platform: mtk: Fix crash in DEBUG build on MTK platform
platform: mtk: Fix crash in DEBUG build on MTK platform
lgirdwood commentedon Apr 7, 2025
@andrew-mtk can we close ?
andrew-mtk commentedon Apr 7, 2025
@lgirdwood, Yes.