drm/amd/pm: skip setting gfx cgpg in the s0ix suspend-resume
authorPrike Liang <Prike.Liang@amd.com>
Mon, 13 Dec 2021 08:17:02 +0000 (16:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Dec 2021 16:57:25 +0000 (11:57 -0500)
commit8c45096c60d6ce6341c374636100ed1b2c1c33a1
treed02e1c8c8b87fe9a2571c95908718fbd09e30c4f
parent4d625a97a7e96be016382e3bb0a3cead05fec153
drm/amd/pm: skip setting gfx cgpg in the s0ix suspend-resume

In the s0ix entry need retain gfx in the gfxoff state,so here need't
set gfx cgpg in the S0ix suspend-resume process. Moreover move the S0ix
check into SMU12 can simplify the code condition check.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1712
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c