Skip to content

Commit

Permalink
drm/radeon/dpm/rs780: don't enable sclk scaling if not required
Browse files Browse the repository at this point in the history
If the low and high sclks are the same, there is no need to
enable sclk scaling.  This causes display stability issues on
certain boards.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=60857

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
  • Loading branch information
Alex Deucher committed Sep 16, 2013
1 parent ce7b30e commit e40210c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/rs780_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ static void rs780_activate_engine_clk_scaling(struct radeon_device *rdev,
(new_state->sclk_low == old_state->sclk_low))
return;

if (new_state->sclk_high == new_state->sclk_low)
return;

rs780_clk_scaling_enable(rdev, true);
}

Expand Down

0 comments on commit e40210c

Please sign in to comment.