aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonk Liu <[email protected]>2019-11-29 16:20:51 +0800
committerAlex Deucher <[email protected]>2019-12-02 17:38:49 -0500
commiteb529b8e46b87c1f89deeb1e736cf704948326e3 (patch)
tree0b833631e7d9794ff357f56c405739064075ef11
parent6de40f02b355ae4c449acdaae19bac1ee380a01d (diff)
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: Monk Liu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index 60c95633f3ce..675ce8f1cab7 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
@@ -3806,7 +3806,7 @@ static int gfx_v10_0_hw_fini(void *handle)
if (amdgpu_gfx_disable_kcq(adev))
DRM_ERROR("KCQ disable failed\n");
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;
}
gfx_v10_0_cp_enable(adev, false);