drm/amd/powerplay: correct the argument for PPSMC_MSG_SetUclkFastSwitch
authorEvan Quan <evan.quan@amd.com>
Fri, 20 Jul 2018 02:53:31 +0000 (10:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:36 +0000 (11:10 -0500)
The argument was set wrongly. Fast/slow switch was asked when there is
actually a slow/fast switch needed.

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 c4302bc41a2417910004b48768bf6f866a48ff66..c5bdb2b4b92134c21b73da5e7443687992435bb6 100644 (file)
@@ -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;
 }