]> git.baikalelectronics.ru Git - kernel.git/commit
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:28:55 +0000 (09:28 -0500)
commit284fdec478b31dd3222fd017d96ed9a97796aeea
treeaedb7b66917ab6b5fc1383371c3fdb59598f00a3
parentfbb8bd5cf3fe02486977cbfc6074bed77dac4daf
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: c78e4b5f2b6d7c ("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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c