aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2016-drm-amd-powerplay-Tidy-up-cz_start_dpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2016-drm-amd-powerplay-Tidy-up-cz_start_dpm.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2016-drm-amd-powerplay-Tidy-up-cz_start_dpm.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2016-drm-amd-powerplay-Tidy-up-cz_start_dpm.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2016-drm-amd-powerplay-Tidy-up-cz_start_dpm.patch
new file mode 100644
index 00000000..88d10c7e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2016-drm-amd-powerplay-Tidy-up-cz_start_dpm.patch
@@ -0,0 +1,41 @@
+From 0bdb5bcbae7f43b02e07a766c9c181eda64d3ce9 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Mon, 16 Oct 2017 13:23:55 -0400
+Subject: [PATCH 2016/4131] drm/amd/powerplay: Tidy up cz_start_dpm()
+
+Remove unused variables.
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 9 ++-------
+ 1 file changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+index 96da4fc..75af4d9 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+@@ -961,18 +961,13 @@ static void cz_clear_voting_clients(struct pp_hwmgr *hwmgr)
+
+ static int cz_start_dpm(struct pp_hwmgr *hwmgr)
+ {
+- int ret = 0;
+ struct cz_hwmgr *cz_hwmgr = (struct cz_hwmgr *)(hwmgr->backend);
+- unsigned long dpm_features = 0;
+
+ cz_hwmgr->dpm_flags |= DPMFlags_SCLK_Enabled;
+- dpm_features |= SCLK_DPM_MASK;
+
+- ret = smum_send_msg_to_smc_with_parameter(hwmgr,
++ return smum_send_msg_to_smc_with_parameter(hwmgr,
+ PPSMC_MSG_EnableAllSmuFeatures,
+- dpm_features);
+-
+- return ret;
++ SCLK_DPM_MASK);
+ }
+
+ static int cz_stop_dpm(struct pp_hwmgr *hwmgr)
+--
+2.7.4
+