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>
Wed, 8 Apr 2020 21:51:03 +0000 (17:51 -0400)
commit487eca11a321ef33bcf4ca5adb3c0c4954db1b58
tree9033afc7bf695b95b021973719d772325e0b2fba
parent72f5b5a308c744573fdbc6c78202c52196d2c162
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c