drm/amd/powerplay: slow UCLK switch when multiple displays not in sync
authorEvan Quan <evan.quan@amd.com>
Fri, 20 Jul 2018 02:13:19 +0000 (10:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jul 2018 20:14:14 +0000 (15:14 -0500)
Slow switch for UCLK when there is multiple displays and they are
not in sync.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Rex Zhu <rex.zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

index 6d93d52975ecb1f648ee0c2b837a70365613ee2c..94e847e34b72002987efa42b79eb1d5fdc82a6c1 100644 (file)
@@ -3800,7 +3800,8 @@ static int vega10_notify_smc_display_config_after_ps_adjustment(
        uint32_t i;
        struct pp_display_clock_request clock_req;
 
-       if (hwmgr->display_config->num_display > 1)
+       if ((hwmgr->display_config->num_display > 1) &&
+            !hwmgr->display_config->multi_monitor_in_sync)
                vega10_notify_smc_display_change(hwmgr, false);
        else
                vega10_notify_smc_display_change(hwmgr, true);