]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/amd/powerplay: A workaround to GPU RESET on APU
authorchen gong <curry.gong@amd.com>
Mon, 23 Sep 2019 07:02:56 +0000 (15:02 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:14:58 +0000 (08:14 -0600)
commit062726eb3e4fef8629c478acf4d1532306bbab61
treea44ea2adb286f20d350772c764905f55f2c4c8ce
parent59b65ed8449f5e065405ee28cd043c1d3e68c146
drm/amd/powerplay: A workaround to GPU RESET on APU

BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit 068ad870bbd8f4f2c5b2fd4977a4f3330c9988f4 ]

Changes to function "smu_suspend" in amdgpu_smu.c is a workaround.

We should get real information about if baco is enabled or not, while we
always consider APU SMU feature as enabled in current code.

I know APU do not support baco mode for GPU reset, so I use
"adev->flags" to skip function "smu_feature_is_enabled".

Signed-off-by: chen gong <curry.gong@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c