author | Suman Anna <s-anna@ti.com> | |
Thu, 22 Feb 2018 03:11:42 +0000 (21:11 -0600) | ||
committer | Suman Anna <s-anna@ti.com> | |
Mon, 11 Mar 2019 17:02:06 +0000 (12:02 -0500) | ||
commit | bda92cdb45d62b399b2e0854b4c77a09f601c3b8 | |
tree | abf10c99c45da12ec20418488fad6a3eb2a503c1 | tree | snapshot (tar.xz tar.gz zip) |
parent | 9582a7a2a16e4096b96b370e180e4f137053a7b4 | commit | diff |
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>
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 | diff | blob | history | |
drivers/remoteproc/omap_remoteproc.c | diff | blob | history |