]> git.hungrycats.org Git - linux/commit
drm/amdgpu/soc24: reset dGPU if suspend got aborted
authorJakob Linke <jakob@linke.cx>
Wed, 17 Jun 2026 06:24:15 +0000 (08:24 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 15:09:58 +0000 (11:09 -0400)
commitfed5bdbfe1d4a19a26c70f7fc58017dc88be1c18
tree7a38ff111db28dfd256db8641c1c209b8c757206
parent916867cd75dbbc383aa6cb724556de769912157a
drm/amdgpu/soc24: reset dGPU if suspend got aborted

For SOC24 ASICs (RDNA4 / Navi 4x dGPUs) re-enabling PM features fails if an
S3 suspend got aborted, the same issue already handled for SOC21 and SOC15:

  commit df3c7dc5c58b ("drm/amdgpu: Reset dGPU if suspend got aborted")
  commit 38e8ca3e4b6d ("amdgpu/soc15: enable asic reset for dGPU in case of suspend abort")

The aborted resume fails with:

  amdgpu: SMU: No response msg_reg: 6 resp_reg: 0
  amdgpu: Failed to enable requested dpm features!
  amdgpu: resume of IP block <smu> failed -62

Apply the same workaround for soc24: detect the aborted-suspend state at
resume via the sign-of-life register and reset the device before re-init.

This is a workaround till a proper solution is finalized.

Fixes: 98b912c50e44 ("drm/amdgpu: Add soc24 common ip block (v2)")
Signed-off-by: Jakob Linke <jakob@linke.cx>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc24.c