drm/amd/powerplay: allow slow switch only if NBPState enabled v2
Otherwise there may be potential SMU performance issues. v2: fix commit description and coding style 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>
This commit is contained in:
parent
f132d56162
commit
92859e0d5c
|
@ -3801,7 +3801,8 @@ static int vega10_notify_smc_display_config_after_ps_adjustment(
|
||||||
struct pp_display_clock_request clock_req;
|
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)
|
!hwmgr->display_config->multi_monitor_in_sync &&
|
||||||
|
!hwmgr->display_config->nb_pstate_switch_disable)
|
||||||
vega10_notify_smc_display_change(hwmgr, false);
|
vega10_notify_smc_display_change(hwmgr, false);
|
||||||
else
|
else
|
||||||
vega10_notify_smc_display_change(hwmgr, true);
|
vega10_notify_smc_display_change(hwmgr, true);
|
||||||
|
|
|
@ -1389,7 +1389,8 @@ static int vega12_notify_smc_display_config_after_ps_adjustment(
|
||||||
struct pp_display_clock_request clock_req;
|
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)
|
!hwmgr->display_config->multi_monitor_in_sync &&
|
||||||
|
!hwmgr->display_config->nb_pstate_switch_disable)
|
||||||
vega12_notify_smc_display_change(hwmgr, false);
|
vega12_notify_smc_display_change(hwmgr, false);
|
||||||
else
|
else
|
||||||
vega12_notify_smc_display_change(hwmgr, true);
|
vega12_notify_smc_display_change(hwmgr, true);
|
||||||
|
|
Loading…
Reference in New Issue