drm/amd/powerplay: correct the argument for PPSMC_MSG_SetUclkFastSwitch
authorEvan Quan <evan.quan@amd.com>
Mon, 16 Jul 2018 09:23:19 +0000 (17:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jul 2018 20:14:25 +0000 (15:14 -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/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c

index 94e847e34b72002987efa42b79eb1d5fdc82a6c1..9f5ceee0fa63813ebcf8269b16eeb83a1e649559 100644 (file)
@@ -3725,7 +3725,7 @@ static void vega10_notify_smc_display_change(struct pp_hwmgr *hwmgr,
 {
        smum_send_msg_to_smc_with_parameter(hwmgr,
                        PPSMC_MSG_SetUclkFastSwitch,
-                       has_disp ? 0 : 1);
+                       has_disp ? 1 : 0);
 }
 
 int vega10_display_clock_voltage_request(struct pp_hwmgr *hwmgr,
index 4ed218dd8ba7a113766e91bf87497fd69638ac3e..35f96dacb50a2e1a67a4f9471cddd8a7108dcda1 100644 (file)
@@ -1334,7 +1334,7 @@ static int vega12_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;
 }