drm/amdgpu: fix gfx hang during suspend with video playback (v2)
authorPrike Liang <Prike.Liang@amd.com>
Tue, 7 Apr 2020 12:21:26 +0000 (20:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:17 +0000 (10:43 -0400)
commita23ca7f76d558e2275cea6033171a6c47fcd002c
tree812fc2702cdb84e9ab8d6506074d88d2fb8f9960
parent5f8693796c06ded7d88bf1d9009cdc406e31f3b1
drm/amdgpu: fix gfx hang during suspend with video playback (v2)

The system will be hang up during S3 suspend because of SMU is pending
for GC not respose the register CP_HQD_ACTIVE access request.This issue
root cause of accessing the GC register under enter GFX CGGPG and can
be fixed by disable GFX CGPG before perform suspend.

v2: Use disable the GFX CGPG instead of RLC safe mode guard.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Tested-by: Mengbing Wang <Mengbing.Wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c