summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10f1ce9)
raw | patch | inline | side by side (parent: 10f1ce9)
author | Suman Anna <s-anna@ti.com> | |
Tue, 22 Apr 2014 16:32:06 +0000 (11:32 -0500) | ||
committer | Suman Anna <s-anna@ti.com> | |
Mon, 11 Mar 2019 17:00:03 +0000 (12:00 -0500) |
The OMAP remote processors send a special mailbox message
(RP_MBOX_CRASH) when they crash and detect an internal device
exception.
Add support to the mailbox handling function upon detection of
this special message to report this crash to the remoteproc core.
The remoteproc core can trigger a recovery using the prevailing
recovery mechanism, already in use for MMU Fault recovery.
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
(RP_MBOX_CRASH) when they crash and detect an internal device
exception.
Add support to the mailbox handling function upon detection of
this special message to report this crash to the remoteproc core.
The remoteproc core can trigger a recovery using the prevailing
recovery mechanism, already in use for MMU Fault recovery.
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/omap_remoteproc.c | patch | blob | history |
index 2016de9e650d34d11934578369f169b99682a4d5..db39527bde0b5d6494b79d13390ef659a21a9c1f 100644 (file)
switch (msg) {
case RP_MBOX_CRASH:
- /* just log this for now. later, we'll also do recovery */
+ /*
+ * remoteproc detected an exception, notify the rproc core.
+ * The remoteproc core will handle the recovery.
+ */
dev_err(dev, "omap rproc %s crashed\n", name);
+ rproc_report_crash(oproc->rproc, RPROC_FATAL_ERROR);
break;
case RP_MBOX_ECHO_REPLY:
dev_info(dev, "received echo reply from %s\n", name);