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

Ingo Molnar
2025-04-08T07:09:55Z

* Borislav Petkov <bp@alien8.de> wrote:

> On Mon, Apr 07, 2025 at 01:56:57PM -0500, Mario Limonciello wrote:
> > Boris, your thoughts please?
>
> Right, how hard would it be to decode those as much as possible without
> having users go look somewhere first?
>
> I mean, we can always go look somewhere for more info but for starters we
> should display as much useful information as possible.

Yeah, and I also have an admittedly selfish reason to ask for this: I
have a Zen 15h system that is at times unreliable and will
spontaneously reboot, and I'd *love* to see whether this reboot-reason
register gives me any further insight as to the root cause. :-) 15h
appears to be the family when this feature was introduced?

Having it printed early straight on bootup in decoded text is very
useful for another reason as well: if a system is unreliable it might
not make it to userspace to run any tooling ...

But I think a more structured sysfs entry would be useful as well in
addition to the bootup printout (for the raw value if nothing else), if
any sysadmin tooling wants to pick up on this register.

Thanks,

Ingo