aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2017-10-04 13:44:52 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-06 17:43:49 -0400
commit1756f1bbddad4552cb4e8773c54960a4cc4ba107 (patch)
treedb6d3548434adb76123f7117e4f34179fe724aa0
parentde1960369115bc997689cefc53a548b3db50a78c (diff)
drm/amd/powerplay: Partially revert changes and fix smu7_notify_smc_display()
This partially reverts 0b6b4cbf77c995a34a4ec3d705a636434dadc51a and fixes the noise issues on Tonga. 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> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 8dbe9148aad3..4826b2991b7e 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -3825,14 +3825,11 @@ static int smu7_notify_link_speed_change_after_state_change(
3825static int smu7_notify_smc_display(struct pp_hwmgr *hwmgr) 3825static int smu7_notify_smc_display(struct pp_hwmgr *hwmgr)
3826{ 3826{
3827 struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); 3827 struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
3828 int ret = 0;
3829 3828
3830 if (hwmgr->feature_mask & PP_VBI_TIME_SUPPORT_MASK) { 3829 if (hwmgr->feature_mask & PP_VBI_TIME_SUPPORT_MASK)
3831 smum_send_msg_to_smc_with_parameter(hwmgr, 3830 smum_send_msg_to_smc_with_parameter(hwmgr,
3832 (PPSMC_Msg)PPSMC_MSG_SetVBITimeout, data->frame_time_x2); 3831 (PPSMC_Msg)PPSMC_MSG_SetVBITimeout, data->frame_time_x2);
3833 ret = (smum_send_msg_to_smc(hwmgr, (PPSMC_Msg)PPSMC_HasDisplay) == 0) ? 0 : -EINVAL; 3832 return (smum_send_msg_to_smc(hwmgr, (PPSMC_Msg)PPSMC_HasDisplay) == 0) ? 0 : -EINVAL;
3834 }
3835 return ret;
3836} 3833}
3837 3834
3838static int smu7_set_power_state_tasks(struct pp_hwmgr *hwmgr, const void *input) 3835static int smu7_set_power_state_tasks(struct pp_hwmgr *hwmgr, const void *input)