提交 cd05b51a 编写于 作者: M Monk Liu 提交者: Alex Deucher

drm/amdgpu: should stop GFX ring in hw_fini

To align with the scheme from gfx9

disabling GFX ring after VM shutdown could avoid
garbage data be fetched to GFX RB which may lead
to unnecessary screw up on GFX
Signed-off-by: NMonk Liu <Monk.Liu@amd.com>
Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 dacf56e4
...@@ -3809,7 +3809,7 @@ static int gfx_v10_0_hw_fini(void *handle) ...@@ -3809,7 +3809,7 @@ static int gfx_v10_0_hw_fini(void *handle)
if (amdgpu_gfx_disable_kcq(adev)) if (amdgpu_gfx_disable_kcq(adev))
DRM_ERROR("KCQ disable failed\n"); DRM_ERROR("KCQ disable failed\n");
if (amdgpu_sriov_vf(adev)) { if (amdgpu_sriov_vf(adev)) {
pr_debug("For SRIOV client, shouldn't do anything.\n"); gfx_v10_0_cp_gfx_enable(adev, false);
return 0; return 0;
} }
gfx_v10_0_cp_enable(adev, false); gfx_v10_0_cp_enable(adev, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册