On 7/1/25 3:07 AM, Arnaud POULIQUEN wrote:
Hi Tanmay,
On 6/27/25 23:29, Tanmay Shah wrote:
Hello all,
I am implementing remoteproc recovery on attach-detach use case. I have implemented the feature in the platform driver, and it works for boot recovery.
Few questions to better understand your use case.
- The linux remoteproc firmware attach to a a remote processor, and you
generate a crash of the remote processor, right?
Yes correct.
- How does the remoteprocessor reboot? On a remoteproc request or it is an
autoreboot independent from the Linux core?
It is auto-reboot independent from the linux core.
- In case of auto reboot, when does the remoteprocessor send an even to the
Linux remoteproc driver ? beforeor after the reset?
Right now, when Remote reboots, it sends crash event to remoteproc driver after reboot.
- Do you expect to get core dump on crash?
No coredump expected as of now, but only recovery. Eventually will implement coredump functionality as well.
However, I am stuck at the testing phase.
When should firmware report the crash ? After reboot ? or during some kind of crash handler ?
So far, I am reporting crash after rebooting remote processor, but it doesn't seem to work i.e. I don't see rpmsg devices created after recovery.> What should be the correct process to test this feature ? How other platforms are testing this?
I have never tested it on ST board. As a first analysis, in case of autoreboot of the remote processor, it look like you should detach and reattach to recover.
That is what's done from the remoteproc framework.
- On detach the rpmsg devices should be unbind
- On attach the remote processor should request RPmsg channels using the NS
announcement mechanism
Main issue is, Remote firmware needs to wait till all above happens. Then only initialize virtio devices. Currently we don't have any way to notify recovery progress from linux to remote fw in the remoteproc framework. So I might have to introduce some platform specific mechanism in remote firmware to wait for recovery to complete successfully.
Regards, Arnaud
Thanks, Tanmay
openamp-rp@lists.openampproject.org