OSDN Git Service

drm/amd/powerplay: allow slow switch only if NBPState enabled
authorEvan Quan <evan.quan@amd.com>
Fri, 20 Jul 2018 02:56:21 +0000 (10:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:37 +0000 (11:10 -0500)
Otherwise there may be potential SMU performance issues.

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/vega20_hwmgr.c

index c5bdb2b..1170f23 100644 (file)
@@ -1896,7 +1896,8 @@ static int vega20_notify_smc_display_config_after_ps_adjustment(
        int ret = 0;
 
        if ((hwmgr->display_config->num_display > 1) &&
-            !hwmgr->display_config->multi_monitor_in_sync)
+            !hwmgr->display_config->multi_monitor_in_sync &&
+            !hwmgr->display_config->nb_pstate_switch_disable)
                vega20_notify_smc_display_change(hwmgr, false);
        else
                vega20_notify_smc_display_change(hwmgr, true);