summary refs log tree commit diff
path: root/drivers
diff options
context:
space:
mode:
authorPierre-Loup A. Griffais <git@plagman.net>2023-08-30 18:15:31 -0700
committerPierre-Loup A. Griffais <pgriffais@valvesoftware.com>2023-11-02 16:08:00 -0700
commitda223ed961ec7c4b9670e1f7afe1ae75ebdd7edb (patch)
treea3a18a20ecf1d7f075c8e187c25aaf666604a0b2 /drivers
parent675d40bb34ab285033f19d11f8642c226031bbd2 (diff)
downloadlinux-da223ed961ec7c4b9670e1f7afe1ae75ebdd7edb.tar.gz
"ungate_before_suspend_gfx.patch"
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index 7a57a23efff0..8256f80d468d 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
@@ -7180,8 +7180,11 @@ static int gfx_v10_0_hw_fini(void *handle)
 	return 0;
 }
 
+static int gfx_v10_0_set_powergating_state(void *handle,
+					  enum amd_powergating_state state);
 static int gfx_v10_0_suspend(void *handle)
 {
+	gfx_v10_0_set_powergating_state(handle, AMD_CG_STATE_UNGATE);
 	return gfx_v10_0_hw_fini(handle);
 }