drm/amdgpu/cz: enable/disable vce dpm even if vce pg is disabled
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Feb 2016 16:24:52 +0000 (11:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2016 16:01:23 +0000 (11:01 -0500)
I missed this when cleaning up the vce pg handling.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c

index 9056355309d18cbc97beaf015b7e34be6c8b6b8f..208990ab83d33f6b82dcce4bb6e763194714b3f7 100644 (file)
@@ -2226,10 +2226,8 @@ static void cz_dpm_powergate_vce(struct amdgpu_device *adev, bool gate)
                }
        } else { /*pi->caps_vce_pg*/
                cz_update_vce_dpm(adev);
-               cz_enable_vce_dpm(adev, true);
+               cz_enable_vce_dpm(adev, !gate);
        }
-
-       return;
 }
 
 const struct amd_ip_funcs cz_dpm_ip_funcs = {
This page took 0.027187 seconds and 5 git commands to generate.