apertus-open-source-cinema / axiom-firmware

AXIOM firmware (linux image, gateware and software tools)
GNU General Public License v3.0
171 stars 54 forks source link

Add watchdog reset-on-timeout #134

Closed rroohhh closed 4 years ago

rroohhh commented 4 years ago

Leaving the camera hanging is probably never what we want, so lets turn on reset-on-timeout in the watchdog configuration.

Suggestions for the timeout length? I think 1 second should be long enough, much longer and waiting for the watchdog takes longer than reseting oneself.

rroohhh commented 4 years ago

Unfortunately it seems we can't use the watchdog to detect from axi hangs, so the watchdog alone is not a complete solution.

However I still think is would be good to enable reset-on-timeout for cases that can be detected by the watchdog.

For detecting AXI hangs, we will just add a timeout on the fpga side, that after the timeout has passed, answers with rresp != 0 or bresp != 0 .