aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0213-drm-amdgpu-cz-remove-commented-out-call-to-enable-vc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0213-drm-amdgpu-cz-remove-commented-out-call-to-enable-vc.patch')
-rw-r--r--common/recipes-kernel/linux/files/0213-drm-amdgpu-cz-remove-commented-out-call-to-enable-vc.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0213-drm-amdgpu-cz-remove-commented-out-call-to-enable-vc.patch b/common/recipes-kernel/linux/files/0213-drm-amdgpu-cz-remove-commented-out-call-to-enable-vc.patch
new file mode 100644
index 00000000..c75b8e91
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0213-drm-amdgpu-cz-remove-commented-out-call-to-enable-vc.patch
@@ -0,0 +1,38 @@
+From 798ac66ba4e59beb2f2e94a32969f0aee4abe171 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Mon, 29 Feb 2016 16:11:07 -0500
+Subject: [PATCH 0213/1110] drm/amdgpu/cz: remove commented out call to enable
+ vce pg
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This code path is not currently enabled now that we properly
+respect the vce pg flags, so uncomment the actual pg calls
+so the code is as it should be we are eventually able to
+enable vce pg.
+
+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 | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
+index 208990a..e7ef226 100644
+--- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
++++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
+@@ -2202,8 +2202,7 @@ static void cz_dpm_powergate_vce(struct amdgpu_device *adev, bool gate)
+ AMD_PG_STATE_GATE);
+
+ cz_enable_vce_dpm(adev, false);
+- /* TODO: to figure out why vce can't be poweroff. */
+- /* cz_send_msg_to_smc(adev, PPSMC_MSG_VCEPowerOFF); */
++ cz_send_msg_to_smc(adev, PPSMC_MSG_VCEPowerOFF);
+ pi->vce_power_gated = true;
+ } else {
+ cz_send_msg_to_smc(adev, PPSMC_MSG_VCEPowerON);
+--
+2.7.4
+