drm/amdgpu: fix shutdown and poweroff process failed with s0ix
authorPrike Liang <Prike.Liang@amd.com>
Mon, 22 Feb 2021 06:04:12 +0000 (14:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Feb 2021 14:48:46 +0000 (09:48 -0500)
commitb092b19602cfd47de1eeeb3a1b03822afd86b136
tree878950c9f87b467765d9e0f3280d26c0a04db910
parent83e6667b675f101fb66659dfa72e45d08773d763
drm/amdgpu: fix shutdown and poweroff process failed with s0ix

In the shutdown and poweroff opt on the s0i3 system we still need
un-gate the gfx clock gating and power gating before destory amdgpu device.

Fixes: 628c36d7b238e2 ("drm/amdgpu: update amdgpu device suspend/resume sequence for s0i3 support")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1499
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c