On my Linux 5.4.24 build i have applied 0001-atf-m4-run-for-5.4.24-kernel.patch and 0001-iMX8MM-GIR-wakeup-for-5.4.24-kernel.patch from this post,
After the A53 is suspended and waken up from M4 using freertos_hello.bin by MU GIR INT for the first time, when the A53 is suspended for the second time it immediately wakes up from suspend without waiting for any new interrupt from M4.
Any help to fix this is appreciated.
Solved! Go to Solution.
On debugging found GIR wakeup irq status was not being cleared.
Setting this env in uboot seemed to fix the imx MU issues for kernel 5.4.24
setenv fdt_file 'imx8mm-evk-rpmsg.dtb'
On debugging found GIR wakeup irq status was not being cleared.
Setting this env in uboot seemed to fix the imx MU issues for kernel 5.4.24
setenv fdt_file 'imx8mm-evk-rpmsg.dtb'
check wakeup sources, if SNVS RTC wakeup is enabled, then disable it
# find wakeup enabled devices
$ find /sys/devices/ -name wakeup -exec grep enabled -H {} \;