Skip to content

Commit

Permalink
drm/i915: Warn if there's a cdclk change in progess
Browse files Browse the repository at this point in the history
If someone is interested in the current cdclk frquency it should
be stable and not in process of changing frquency. Warn if the current
and requested cdclk don't match in .get_display_clock_spee() on vlv.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ville Syrjälä authored and Daniel Vetter committed Jul 7, 2014
1 parent a877e80 commit 7d007f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -5275,6 +5275,10 @@ static int valleyview_get_display_clock_speed(struct drm_device *dev)

divider = val & DISPLAY_FREQUENCY_VALUES;

WARN((val & DISPLAY_FREQUENCY_STATUS) !=
(divider << DISPLAY_FREQUENCY_STATUS_SHIFT),
"cdclk change in progress\n");

return DIV_ROUND_CLOSEST(vco << 1, divider + 1);
}

Expand Down

0 comments on commit 7d007f4

Please sign in to comment.