drm/amdgpu/cz: fix cz_dpm_update_low_memory_pstate logic
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2015 04:53:24 +0000 (00:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2015 16:06:47 +0000 (12:06 -0400)
The logic was reversed.  This feature is not enabled
at the moment, but fix it now for the future.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c

index ace870afc7d45154a6bb6013cb45b773a8e63512..44fa96ad47099b765ac81e5c439766a8f9849392 100644 (file)
@@ -1596,9 +1596,9 @@ static int cz_dpm_update_low_memory_pstate(struct amdgpu_device *adev)
 
        if (pi->sys_info.nb_dpm_enable) {
                if (ps->force_high)
-                       cz_dpm_nbdpm_lm_pstate_enable(adev, true);
-               else
                        cz_dpm_nbdpm_lm_pstate_enable(adev, false);
+               else
+                       cz_dpm_nbdpm_lm_pstate_enable(adev, true);
        }
 
        return ret;