From: Evan Quan Date: Fri, 20 Jul 2018 02:56:21 +0000 (+0800) Subject: drm/amd/powerplay: allow slow switch only if NBPState enabled X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=16ed0ff2755c852c3222bf53d4a0d97f3665733e;p=android-x86%2Fkernel.git drm/amd/powerplay: allow slow switch only if NBPState enabled Otherwise there may be potential SMU performance issues. Signed-off-by: Evan Quan Reviewed-by: Rex Zhu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c index c5bdb2b4b921..1170f233d9e2 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c @@ -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);