Other Parts Discussed in Thread: SYSBIOS
Hello,
We have ipu code based on AM57x8-IPC/Main/ipc_3_47_02_00/examples/DRA7XX_linux_elf/ex02_messageq/ipu1
The code works correctly and usually starts up and shuts down correctly. However, about 10% of the time the code crashes during system shutdown. This can be replicated with these commands:
rmmod -v omap-remoteproc
modprobe -v omap-remoteproc
At this point, it appears the problem is "MessageQ_get" doesn't handle the shutdown. It's also possible the BIOS code itself doesn't handle the shutdown. I've determined there appears to be a missing call to BIOS_exit at the end of "smain" in MainIpu1.c. Without that call, when smain end the system hangs. However, even with that the system still hangs when unloading the module.
Note: this problem happens with the unchanged example code. I'm using u-boot "loglevel=9" and there are no messages sent to the serial console when the system hangs. Also, the "ipu1" code is the only one loaded. (No ipu2, dsp1, or dsp2)
I need help diagnosing this problem and/or suggestions how to fix it.
Thanks,
Scott