[Public]

Acked-by: Alex Deucher <alexander.deuc...@amd.com>
________________________________
From: Liang, Prike <prike.li...@amd.com>
Sent: Wednesday, December 8, 2021 8:51 PM
To: amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>
Cc: Deucher, Alexander <alexander.deuc...@amd.com>; Huang, Ray 
<ray.hu...@amd.com>; Limonciello, Mario <mario.limoncie...@amd.com>; Liang, 
Prike <prike.li...@amd.com>
Subject: [PATCH] drm/amd/pm: skip gfx cgpg in the s0ix suspend-resume

In the s0ix entry need retain gfx in the gfxoff state,we don't
disable gfx cgpg in the suspend so there is also needn't enable
gfx cgpg in the s0ix resume.

Signed-off-by: Prike Liang <prike.li...@amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c 
b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 5839918..185269f 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -1607,7 +1607,8 @@ static int smu_resume(void *handle)
                 return ret;
         }

-       if (smu->is_apu)
+       /* skip gfx cgpg in the s0ix suspend-resume case*/
+       if (smu->is_apu && !adev->in_s0ix)
                 smu_set_gfx_cgpg(&adev->smu, true);

         smu->disable_uclk_switch = 0;
--
2.7.4

Reply via email to