Re: [PATCH 2/2] x86/CPU/AMD: Print the reason for the last reset

From: Ingo Molnar
Date: Mon Apr 07 2025 - 15:32:04 EST



* Mario Limonciello <superm1@xxxxxxxxxx> wrote:

> > I realize that the entire numeric value gets printed as well, but it's
> > the symbolic decoding that is most useful to humans.
>
> The way that I "envisioned" this working was someone uses their machine and
> suddenly hits a problem. When they do they look at amd/debugging.rst and
> then run:
>
> "journalctl -k | grep "System reset was due"
>
> and then map the odd duck(s) out to the table.

99% of such people wouldn't know about amd/debugging.rst (nor should
they really: why should there be an extra layer of obfuscation while we
have this thing called a 'computer' that could ... compute all that
lookup for us? ;-), and they'd be looking at information in the syslog
after weird reboots.

We should improve their quality of life as much as possible.

Thanks,

Ingo