]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/pp: Workaround flickering issue on RV
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 14 May 2018 08:03:01 +0000 (16:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 May 2018 21:08:17 +0000 (16:08 -0500)
Screen flickering observed while running 1080p video using
MPV_VAAPI/VDPAU with 4x4K@60 monitors

Need to set higher mclk in this configuration.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c

index 2f69bfa478a716b0c41ce6b1cba997e529c3533a..017ef2d169e93434898c543023dd1600f857dcea 100644 (file)
@@ -600,7 +600,10 @@ static int smu10_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
                                                data->gfx_min_freq_limit/100);
                smum_send_msg_to_smc_with_parameter(hwmgr,
                                                PPSMC_MSG_SetHardMinFclkByFreq,
+                                               hwmgr->display_config->num_display > 3 ?
+                                               SMU10_UMD_PSTATE_PEAK_FCLK :
                                                SMU10_UMD_PSTATE_MIN_FCLK);
+
                smum_send_msg_to_smc_with_parameter(hwmgr,
                                                PPSMC_MSG_SetHardMinSocclkByFreq,
                                                SMU10_UMD_PSTATE_MIN_SOCCLK);