OSDN Git Service

drm/amdgpu: fix the hw hang during perform system reboot and reset
authorPrike Liang <Prike.Liang@amd.com>
Mon, 13 Apr 2020 13:41:14 +0000 (21:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:45 +0000 (18:11 -0400)
commitced1ba9761693ec310c33edf47c63b062a09be4a
tree1db1bf09fca4249d39ee7d8fde3a438d75f9f500
parent5edb769131e74defcdf82aeb53701a8895d2d462
drm/amdgpu: fix the hw hang during perform system reboot and reset

The system reboot failed as some IP blocks enter power gate before perform
hw resource destory. Meanwhile use unify interface to set device CGPG to ungate
state can simplify the amdgpu poweroff or reset ungate guard.

Fixes: 487eca11a321ef ("drm/amdgpu: fix gfx hang during suspend with video playback (v2)")
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Tested-by: Mengbing Wang <Mengbing.Wang@amd.com>
Tested-by: Paul Menzel <pmenzel@molgen.mpg.de>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c