aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0952-drm-amd-powrplay-fix-issue-that-get-wrong-enable-fla.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0952-drm-amd-powrplay-fix-issue-that-get-wrong-enable-fla.patch')
-rw-r--r--common/recipes-kernel/linux/files/0952-drm-amd-powrplay-fix-issue-that-get-wrong-enable-fla.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0952-drm-amd-powrplay-fix-issue-that-get-wrong-enable-fla.patch b/common/recipes-kernel/linux/files/0952-drm-amd-powrplay-fix-issue-that-get-wrong-enable-fla.patch
new file mode 100644
index 00000000..e1bc7142
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0952-drm-amd-powrplay-fix-issue-that-get-wrong-enable-fla.patch
@@ -0,0 +1,34 @@
+From 4a8fd3d67594a6bf43d5827e0a15be8b124ee9c2 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Tue, 15 Mar 2016 17:42:47 +0800
+Subject: [PATCH 0952/1110] drm/amd/powrplay: fix issue that get wrong enable
+ flag.
+
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
+index d08f739..446ed72 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
+@@ -3960,14 +3960,11 @@ static int polaris10_trim_single_dpm_states(struct pp_hwmgr *hwmgr,
+ uint32_t low_limit, uint32_t high_limit)
+ {
+ uint32_t i;
+- struct polaris10_hwmgr *data = (struct polaris10_hwmgr *)(hwmgr->backend);
+
+ for (i = 0; i < dpm_table->count; i++) {
+ if ((dpm_table->dpm_levels[i].value < low_limit)
+ || (dpm_table->dpm_levels[i].value > high_limit))
+ dpm_table->dpm_levels[i].enabled = false;
+- else if (((1 << i) & data->disable_dpm_mask) == 0)
+- dpm_table->dpm_levels[i].enabled = false;
+ else
+ dpm_table->dpm_levels[i].enabled = true;
+ }
+--
+2.7.4
+