drm/amdgpu: should stop GFX ring in hw_fini
authorMonk Liu <Monk.Liu@amd.com>
Fri, 29 Nov 2019 08:20:51 +0000 (16:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2019 22:38:49 +0000 (17:38 -0500)
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 <Monk.Liu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 60c9563..675ce8f 100644 (file)
@@ -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);