]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/amd/amdgpu: make sure VCE is disabled by default
authorArindam Nath <arindam.nath@amd.com>
Mon, 20 Jun 2016 08:47:49 +0000 (14:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:54:47 +0000 (14:54 -0400)
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 <alexander.deucher@amd.com>
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c

index 933e425a81545c22d80945f08da923f964fd0d16..8ba07e79d4cb17317cebd37811b24bcf046ef847 100644 (file)
@@ -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);
        }