New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watchdog restart cause detection #1
Comments
Thanks for the request and suggestions. I'm trying to confirm that we really have no other way get this information. If that is true, we need to think about how to define and protect the magic RAM location - and how to make it available to watchdog drivers (device tree binding?). Or if we should rather use some SRAM location. |
Seem we now need to think about how to make such a software interface official. |
PS: You man not want to use email replies here if you have no control over your email footers. |
Basically, we are open to any proposal. |
No concrete plan yet, but here are some todos IMHO:
|
Maybe I did in a wrong way but tried to save the magic-value at an SRAM address (0x300) and the value was initialized back to 0 after the watchdog restart. The magic-value remained persistent when I used RAM address (0x87000000) |
No, that actually fits into what a TI engineer told me: SRAM may not work as there is some self-test running during boot-up. |
@attila-hannibal Did you make any steps in defining an official interface meanwhile? |
Dear @jan-kiszka ! No, unfortunately not. |
Addressed by #3. |
Dear Siemens / Jan
We would like to have a possibility that after any kind of restart (power on restart, SW initiated restart, watchdog initiated restart, etc...) determine if the restart was caused by the watchdog or not.
Currently it seems the TI AM6548 type of SoC does not offer any register that could be used for this purpose. Even more we use this k3-rti-wdt firmware that executes a remote system-reset from FW side, that means from SoC point of view this is a kind of "user initiated reset".
In case there isn't any built-in possibility within the TI SoC we would like to extend this k3-rti-wdt firmware to set some magic value at a defined, unused RAM address before executing the system reset.
A driver later can use this dedicated RAM address to identify the restart cause:
Thank you!
The text was updated successfully, but these errors were encountered: