aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1064-drm-amd-powerplay-Partially-revert-changes-and-fix-s.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1064-drm-amd-powerplay-Partially-revert-changes-and-fix-s.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1064-drm-amd-powerplay-Partially-revert-changes-and-fix-s.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1064-drm-amd-powerplay-Partially-revert-changes-and-fix-s.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1064-drm-amd-powerplay-Partially-revert-changes-and-fix-s.patch
new file mode 100644
index 00000000..08c87e16
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1064-drm-amd-powerplay-Partially-revert-changes-and-fix-s.patch
@@ -0,0 +1,42 @@
+From 82158c7988d67af736c2a4c44e89d2a3f9b432af Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Wed, 4 Oct 2017 13:44:52 -0400
+Subject: [PATCH 1064/4131] drm/amd/powerplay: Partially revert changes and fix
+ smu7_notify_smc_display()
+
+This partially reverts 0b6b4cbf77c995a34a4ec3d705a636434dadc51a and fixes
+the noise issues on Tonga.
+
+Change-Id: I6351b3e1688968cfb27c3e13b83b4356866f04d6
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 9 +++------
+ 1 file changed, 3 insertions(+), 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+index 8bad378..37340c4 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+@@ -3828,14 +3828,11 @@ static int smu7_notify_link_speed_change_after_state_change(
+ static int smu7_notify_smc_display(struct pp_hwmgr *hwmgr)
+ {
+ struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
+- int ret = 0;
+
+- if (hwmgr->feature_mask & PP_VBI_TIME_SUPPORT_MASK) {
+- smum_send_msg_to_smc_with_parameter(hwmgr->smumgr,
++ if (hwmgr->feature_mask & PP_VBI_TIME_SUPPORT_MASK)
++ smum_send_msg_to_smc_with_parameter(hwmgr,
+ (PPSMC_Msg)PPSMC_MSG_SetVBITimeout, data->frame_time_x2);
+- ret = (smum_send_msg_to_smc(hwmgr->smumgr, (PPSMC_Msg)PPSMC_HasDisplay) == 0) ? 0 : -EINVAL;
+- }
+- return ret;
++ return (smum_send_msg_to_smc(hwmgr, (PPSMC_Msg)PPSMC_HasDisplay) == 0) ? 0 : -EINVAL;
+ }
+
+ static int smu7_set_power_state_tasks(struct pp_hwmgr *hwmgr, const void *input)
+--
+2.7.4
+