diff options
author | Peng Fan <peng.fan@nxp.com> | 2022-09-28 14:47:56 +0800 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2022-09-28 10:47:07 -0600 |
commit | ba194232edc032be2188ed792330bdd7bd5d4363 (patch) | |
tree | 1565c76fc5fa0035de3559c1cd07900446c4f8ab /drivers/fpga/fpga-region.c | |
parent | 49f27f2b4bfa8b6e26f02df615e544f52648bfb2 (diff) | |
download | linux-ba194232edc032be2188ed792330bdd7bd5d4363.tar.bz2 |
remoteproc: Support attach recovery after rproc crash
Current logic only support main processor to stop/start the remote
processor after crash. However to SoC, such as i.MX8QM/QXP, the
remote processor could do attach recovery after crash and trigger watchdog
to reboot itself. It does not need main processor to load image, or
stop/start remote processor.
Introduce two functions: rproc_attach_recovery, rproc_boot_recovery
for the two cases. Boot recovery is as before, let main processor to
help recovery, while attach recovery is to recover itself without help.
To attach recovery, we only do detach and attach.
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20220928064756.4059662-3-peng.fan@oss.nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions