Commit 49e497ef authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: Don't lie about findind suitable PLL settings on VLV

If vlv_find_best_dpll() couldn't find suitable PLL settings,
just say so instead of lying to caller.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent dc730512
...@@ -662,6 +662,7 @@ vlv_find_best_dpll(const intel_limit_t *limit, struct drm_crtc *crtc, ...@@ -662,6 +662,7 @@ vlv_find_best_dpll(const intel_limit_t *limit, struct drm_crtc *crtc,
unsigned int bestppm = 1000000; unsigned int bestppm = 1000000;
/* min update 19.2 MHz */ /* min update 19.2 MHz */
int max_n = min(limit->n.max, refclk / 19200); int max_n = min(limit->n.max, refclk / 19200);
bool found = false;
target *= 5; /* fast clock */ target *= 5; /* fast clock */
...@@ -692,18 +693,20 @@ vlv_find_best_dpll(const intel_limit_t *limit, struct drm_crtc *crtc, ...@@ -692,18 +693,20 @@ vlv_find_best_dpll(const intel_limit_t *limit, struct drm_crtc *crtc,
if (ppm < 100 && clock.p > best_clock->p) { if (ppm < 100 && clock.p > best_clock->p) {
bestppm = 0; bestppm = 0;
*best_clock = clock; *best_clock = clock;
found = true;
} }
if (bestppm >= 10 && ppm < bestppm - 10) { if (bestppm >= 10 && ppm < bestppm - 10) {
bestppm = ppm; bestppm = ppm;
*best_clock = clock; *best_clock = clock;
found = true;
} }
} }
} }
} }
} }
return true; return found;
} }
bool intel_crtc_active(struct drm_crtc *crtc) bool intel_crtc_active(struct drm_crtc *crtc)
......
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