]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit736a24ebee5139d07c667ede70391c852f2f22ad
treed02e1c8c8b87fe9a2571c95908718fbd09e30c4f
parentbc35783df417f2e4fdb2ecc02e1ba3360131b45d
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