]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
remoteproc/omap: add watchdog functionality for remote processors
authorSuman Anna <s-anna@ti.com>
Thu, 22 Feb 2018 03:11:42 +0000 (21:11 -0600)
committerSuman Anna <s-anna@ti.com>
Mon, 11 Mar 2019 17:02:06 +0000 (12:02 -0500)
commitbda92cdb45d62b399b2e0854b4c77a09f601c3b8
treeabf10c99c45da12ec20418488fad6a3eb2a503c1
parent9582a7a2a16e4096b96b370e180e4f137053a7b4
remoteproc/omap: add watchdog functionality for remote processors

Remote processors can be stuck in a loop, and may not be recoverable
if they do not have a built-in watchdog. The watchdog implementation
for OMAP remote processors uses external gptimers that can be used
to interrupt both the Linux host as well as the remote processor.

Each remote processor is responsible for refreshing the timer during
normal behavior - during OS task scheduling or entering the idle loop
properly. During a watchdog condition (executing a tight loop causing
no scheduling), the host processor gets interrupts and schedules a
recovery for the corresponding remote processor. The remote processor
may also get interrupted to be able to print a back trace.

A menuconfig option has also been added to enable/disable the Watchdog
functionality, with the default as disabled.

Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/Kconfig
drivers/remoteproc/omap_remoteproc.c