]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commita947fb9aa08b9dd7d2c46f5393fe36b8ac51057f
tree5296ca36aeebb97680e0a9d2d2219053acc88d40
parenta76e3ce9fe04434e1b8e923ad5d2e6437ee90486
drm/amdgpu: fix gfx hang during suspend with video playback (v2)

BugLink: https://bugs.launchpad.net/bugs/1873481
[ Upstream commit 487eca11a321ef33bcf4ca5adb3c0c4954db1b58 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c