drm/amdgpu: Reset dGPU if suspend got aborted
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 14 Feb 2024 12:25:54 +0000 (17:55 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 01:49:42 +0000 (21:49 -0400)
commitdf3c7dc5c58b1f85033d2cd9a121b27844700ca2
tree450ef10d08ab4d246cdea84e81094730e06297ec
parent6a0e1bafd70fe5c5d8dcf7d2ddff9377701343c3
drm/amdgpu: Reset dGPU if suspend got aborted

For SOC21 ASICs, there is an issue in re-enabling PM features if a
suspend got aborted. In such cases, reset the device during resume
phase. This is a workaround till a proper solution is finalized.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/soc21.c