]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: disable MGCG/MGLS also on gfx CG ungate
authorEvan Quan <evan.quan@amd.com>
Thu, 30 Apr 2020 03:15:19 +0000 (11:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 May 2020 20:50:51 +0000 (16:50 -0400)
Otherwise, MGCG/MGLS will be left enabled.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 38f704705dbc9bb645dfc953a261050547834026..d34c1e9fde9716c541418bc94aecbc96370b68cb 100644 (file)
@@ -7015,7 +7015,7 @@ static int gfx_v10_0_update_gfx_clock_gating(struct amdgpu_device *adev,
                /* ===  CGCG /CGLS for GFX 3D Only === */
                gfx_v10_0_update_3d_clock_gating(adev, enable);
                /* ===  MGCG + MGLS === */
-               /* gfx_v10_0_update_medium_grain_clock_gating(adev, enable); */
+               gfx_v10_0_update_medium_grain_clock_gating(adev, enable);
        }
 
        if (adev->cg_flags &