aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
diff options
context:
space:
mode:
authorYazen Ghannam <[email protected]>2025-07-21 18:11:54 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-08-18 14:36:59 +0000
commite9576e078220c50ace9e9087355423de23e25fa5 (patch)
tree31bf284d802af91d913daad4acb3b512517c5b33 /drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
parentx86/cpu/hygon: Add missing resctrl_cpu_detect() in bsp_init helper (diff)
downloadkernel-e9576e078220c50ace9e9087355423de23e25fa5.tar.gz
kernel-e9576e078220c50ace9e9087355423de23e25fa5.zip
x86/CPU/AMD: Ignore invalid reset reason value
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. 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 <[email protected]> Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c')
0 files changed, 0 insertions, 0 deletions