aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0211-drm-amdgpu-cz-enable-disable-vce-dpm-even-if-vce-pg-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0211-drm-amdgpu-cz-enable-disable-vce-dpm-even-if-vce-pg-.patch')
-rw-r--r--common/recipes-kernel/linux/files/0211-drm-amdgpu-cz-enable-disable-vce-dpm-even-if-vce-pg-.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0211-drm-amdgpu-cz-enable-disable-vce-dpm-even-if-vce-pg-.patch b/common/recipes-kernel/linux/files/0211-drm-amdgpu-cz-enable-disable-vce-dpm-even-if-vce-pg-.patch
new file mode 100644
index 00000000..1f9a7382
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0211-drm-amdgpu-cz-enable-disable-vce-dpm-even-if-vce-pg-.patch
@@ -0,0 +1,37 @@
+From 1b7a34b147110b8044df2395d565f00df4df5312 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 25 Feb 2016 11:24:52 -0500
+Subject: [PATCH 0211/1110] drm/amdgpu/cz: enable/disable vce dpm even if vce
+ pg is disabled
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
+index 9056355..208990a 100644
+--- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
++++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
+@@ -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 = {
+--
+2.7.4
+