Re: [PATCH v2] x86/CPU/AMD: Ignore invalid reset reason value

From: Yazen Ghannam
Date: Wed Aug 13 2025 - 15:32:44 EST


On Wed, Jul 23, 2025 at 08:07:52PM +0000, Yazen Ghannam wrote:
> The reset reason value may be "all bits set", e.g. 0xFFFFFFFF. This is a
> commonly used error response from hardware. This may occur due to a real
> hardware issue or when running in a VM.
>
> The user will see all reset reasons reported in this case.
>
> Return early if running in a VM as this register is not emulated.
>
> Check for an error response value and return early to avoid decoding
> invalid data.
>
> Also, adjust the data variable type to match the hardware register size.
>
> Fixes: ab8131028710 ("x86/CPU/AMD: Print the reason for the last reset")
> Reported-by: Libing He <libhe@xxxxxxxxxx>
> Signed-off-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
> Reviewed-by: Mario Limonciello <mario.limonciello@xxxxxxx>
> Cc: David Arcari <darcari@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---

Hi all,

Any more feedback on this?

Thanks,
Yazen