Hi,
When the system do a software reset by the watchdog, sometimes ( around 5%) the system got stuck. After some debugging with jtag, we found it got stuck at the while loop in imx-atf:
imx-atf/plat/imx/imx8m/imx8mp/gpc.c, function
void imx_gpc_pm_domain_enable(uint32_t domain_id, bool on)
{
......
if (domain_id == HDMIMIX) {
/* wait for memory repair done for HDMIMIX */
while (!(mmio_read_32(IMX_SRC_BASE + 0x94) & BIT(8)))
I didn't try the evk, because the evk is doing a cold reboot through pmic which turn off the whole cpu.
We are using the release 5.10.35, but the this piece of code in imx-atf has no difference with the latest version.
The register IMX_SRC_BASE + 0x94 is SRC_GPR9, which is marked as reserved for internal use.
Hope get some help about this.
Best Regard,
Roy Huang