diff options
author | Evan Quan <evan.quan@amd.com> | 2018-07-20 10:56:21 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 11:10:37 -0500 |
commit | 16ed0ff2755c852c3222bf53d4a0d97f3665733e (patch) | |
tree | 8ce31e86954deefe3a5039067313336899a690d0 /drivers/gpu/drm | |
parent | 5d923a692868609f77db4873a3ff4420853cb38c (diff) | |
download | linux-16ed0ff2755c852c3222bf53d4a0d97f3665733e.tar.bz2 |
drm/amd/powerplay: allow slow switch only if NBPState enabled
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |