From: Arindam Nath Date: Mon, 20 Jun 2016 08:47:49 +0000 (+0530) Subject: drm/amd/amdgpu: make sure VCE is disabled by default X-Git-Tag: v4.8-rc1~62^2~23^2~64 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fb065ce7d30d17344610a81965111c551bff8af2;p=karo-tx-linux.git drm/amd/amdgpu: make sure VCE is disabled by default With the current code, when we boot with the amdgpu driver enabled and loaded, the VCE also automatically remains enabled since bootup. This can be verified from the output of amdgpu_pm_info. It does not matter whether we boot into command line directly or into X, the VCE stays enabled the entire time. This patch addresses the issue and makes sure that VCE is turned on only during playback, and remains disaled otherwise. Reviewed-by: Alex Deucher Signed-off-by: Arindam Nath Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c index 933e425a8154..8ba07e79d4cb 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c @@ -2219,6 +2219,7 @@ static void cz_dpm_powergate_vce(struct amdgpu_device *adev, bool gate) } } } else { /*pi->caps_vce_pg*/ + pi->vce_power_gated = gate; cz_update_vce_dpm(adev); cz_enable_vce_dpm(adev, !gate); }