]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/powerplay: fix copy error in powerplay.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 8 Jun 2017 07:45:04 +0000 (15:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2017 15:30:33 +0000 (11:30 -0400)
v2: fix typos.

should disable led dpm feature when stop dpm.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

index 9338aca3522ff01858f1709bb502f99c696b81c5..d9744b6b5b0e69708ca2fe1396d84e306a1c73c0 100644 (file)
@@ -2702,9 +2702,9 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap)
 
        if(data->smu_features[GNLD_LED_DISPLAY].supported == true){
                PP_ASSERT_WITH_CODE(!vega10_enable_smc_features(hwmgr->smumgr,
-                               true, data->smu_features[GNLD_LED_DISPLAY].smu_feature_bitmap),
-               "Attempt to Enable LED DPM feature Failed!", return -EINVAL);
-               data->smu_features[GNLD_LED_DISPLAY].enabled = true;
+                               false, data->smu_features[GNLD_LED_DISPLAY].smu_feature_bitmap),
+               "Attempt to disable LED DPM feature failed!", return -EINVAL);
+               data->smu_features[GNLD_LED_DISPLAY].enabled = false;
        }
 
        for (i = 0; i < GNLD_DPM_MAX; i++) {