From: Evan Quan Date: Fri, 20 Jul 2018 02:53:31 +0000 (+0800) Subject: drm/amd/powerplay: correct the argument for PPSMC_MSG_SetUclkFastSwitch X-Git-Tag: v5.4-rc1~2273^2~27^2~300 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d923a692868609f77db4873a3ff4420853cb38c;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/powerplay: correct the argument for PPSMC_MSG_SetUclkFastSwitch The argument was set wrongly. Fast/slow switch was asked when there is actually a slow/fast switch needed. 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 c4302bc..c5bdb2b 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c @@ -1839,7 +1839,7 @@ static int vega20_notify_smc_display_change(struct pp_hwmgr *hwmgr, if (data->smu_features[GNLD_DPM_UCLK].enabled) return smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_SetUclkFastSwitch, - has_disp ? 0 : 1); + has_disp ? 1 : 0); return 0; }