-
Jonathon Hall authored
Log significant events and the last trace location in the EC BRAM to improve supportability of field issues, especially those causing host OS freezes, shutoffs, or resets. The first 128 bytes of EC BRAM are used to hold two logs - the current log and the last-failed log. If the EC resets unexpectedly, the current log is copied to the last-failed log to diagnose the reset. Other events indicating significant failures can also create a failed log. The user can indicate a failure, capturing the log, by pressing Fn+X, even if the SoC is not running. Significant events are a very compact form of tracing to fit in the available space. The EC can log important transitions like power plane changes, power button events, etc., which aid reproducing a problem event. Detectable problems are also logged, like failures setting PL4. The last trace file/line are also logged. Unexpected shutoffs during particular events can be indicated this way, s...