Commit 7d007f40 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: Warn if there's a cdclk change in progess

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent a877e801
...@@ -5275,6 +5275,10 @@ static int valleyview_get_display_clock_speed(struct drm_device *dev) ...@@ -5275,6 +5275,10 @@ static int valleyview_get_display_clock_speed(struct drm_device *dev)
divider = val & DISPLAY_FREQUENCY_VALUES; 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); return DIV_ROUND_CLOSEST(vco << 1, divider + 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment