aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1322-drm-amd-powerplay-need-to-reapply-the-dpm-level-sett.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1322-drm-amd-powerplay-need-to-reapply-the-dpm-level-sett.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1322-drm-amd-powerplay-need-to-reapply-the-dpm-level-sett.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1322-drm-amd-powerplay-need-to-reapply-the-dpm-level-sett.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1322-drm-amd-powerplay-need-to-reapply-the-dpm-level-sett.patch
new file mode 100644
index 00000000..0069e923
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1322-drm-amd-powerplay-need-to-reapply-the-dpm-level-sett.patch
@@ -0,0 +1,32 @@
+From ae1099a566f941684c9a6bebd4e899522850bd6f Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Wed, 20 Feb 2019 16:21:10 +0800
+Subject: [PATCH 1322/2940] drm/amd/powerplay: need to reapply the dpm level
+ settings
+
+As these settings got reset during above phm_apply_clock_adjust_rules.
+
+Change-Id: Ie3296a87ef1d1b02e2195cdf69bdfb45c0b9f453
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
+index ce177d7f04cb..6bf48934fdc4 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
+@@ -277,8 +277,7 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip_display_set
+ if (!skip_display_settings)
+ phm_notify_smc_display_config_after_ps_adjustment(hwmgr);
+
+- if ((hwmgr->request_dpm_level != hwmgr->dpm_level) &&
+- !phm_force_dpm_levels(hwmgr, hwmgr->request_dpm_level))
++ if (!phm_force_dpm_levels(hwmgr, hwmgr->request_dpm_level))
+ hwmgr->dpm_level = hwmgr->request_dpm_level;
+
+ if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) {
+--
+2.17.1
+