]> git.baikalelectronics.ru Git - 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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:01 +0000 (09:11 -0500)
commita066a3d314a98f3d6a4cbc5d35b44eb721b9e162
tree2a615c5a9d080cc29bf9a4083c1ee2ae9d0b0139
parentb046455ae1d36258eca30a80c1e00e2e46cca950
drm/amd/powerplay: A workaround to GPU RESET on APU

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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c