drm/radeon/ni: fix typo in dpm sq ramping setup
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2014 15:16:28 +0000 (10:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2014 18:41:06 +0000 (13:41 -0500)
inverted logic.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/ni_dpm.c

index 1217fbc..ca81427 100644 (file)
@@ -2588,7 +2588,7 @@ static int ni_populate_sq_ramping_values(struct radeon_device *rdev,
        if (NISLANDS_DPM2_SQ_RAMP_STI_SIZE > (STI_SIZE_MASK >> STI_SIZE_SHIFT))
                enable_sq_ramping = false;
 
-       if (NISLANDS_DPM2_SQ_RAMP_LTI_RATIO <= (LTI_RATIO_MASK >> LTI_RATIO_SHIFT))
+       if (NISLANDS_DPM2_SQ_RAMP_LTI_RATIO > (LTI_RATIO_MASK >> LTI_RATIO_SHIFT))
                enable_sq_ramping = false;
 
        for (i = 0; i < state->performance_level_count; i++) {