]> 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)
commitb23f077781a7da8089e9ce25eb89f5043a950c02
treeaedb7b66917ab6b5fc1383371c3fdb59598f00a3
parent5c5c725439003c63037ff88eb17345c0738b50de
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: f8836e80c4f92a ("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