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>
Thu, 16 Dec 2021 18:34:14 +0000 (13:34 -0500)
commitf296a0bcc9611ba96ca3abb3332e21ee600d153f
tree141479a5cf5cbdb710d513f8cc6cb68fce755273
parent9f952378fcb90d202cbdf359aaeaad9429edbd0a
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.

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