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>
Tue, 14 Apr 2020 16:48:01 +0000 (12:48 -0400)
commitb2a7e9735ab2864330be9d00d7f38c961c28de5d
tree09989d67c93bf2057e9e64a15cfbc4568a864de4
parent028cfb2444b94d4f394a6fa4ca46182481236e91
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c