diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/files/1081-drm-amd-amdgpu-make-sure-VCE-is-disabled-by-default.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/files/1081-drm-amd-amdgpu-make-sure-VCE-is-disabled-by-default.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/files/1081-drm-amd-amdgpu-make-sure-VCE-is-disabled-by-default.patch b/meta-amdfalconx86/recipes-kernel/linux/files/1081-drm-amd-amdgpu-make-sure-VCE-is-disabled-by-default.patch new file mode 100644 index 00000000..b01d3dbc --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/files/1081-drm-amd-amdgpu-make-sure-VCE-is-disabled-by-default.patch @@ -0,0 +1,40 @@ +From c9b3aef7b291b7f2a475c4094ac8432986512e80 Mon Sep 17 00:00:00 2001 +From: Arindam Nath <arindam.nath@amd.com> +Date: Mon, 20 Jun 2016 14:17:49 +0530 +Subject: [PATCH 1081/1110] 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 <alexander.deucher@amd.com> +Signed-off-by: Arindam Nath <arindam.nath@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Kalyan Alle <kalyan.alle@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c +index bf1847b..b115810 100644 +--- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c ++++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c +@@ -2224,6 +2224,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); + } +-- +2.7.4 + |