OSDN Git Service

drm/i915: Use intel_PLL_is_valid() in vlv_find_best_dpll()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Sep 2013 13:55:49 +0000 (16:55 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:46:56 +0000 (12:46 +0200)
commitf01b796283e0fb2aa70b7cceb7067340f8ec6626
treeab6dc969ef4b910545514544a24d2051d120ca5f
parent49e497ef43e06dbf65e0a3637bcaedb31ce17d34
drm/i915: Use intel_PLL_is_valid() in vlv_find_best_dpll()

Everyone else uses intel_PLL_is_valid(), so make VLV use it as well.

We don't have any special p and m limits on VLV, so skip those tests,
and we also need to skip the m1<=m2 test line PNV.

Reorganize the function a bit to move the n check alongside the rest of
the test for the non-derived dividers, and check the derived values
afterwards.

Note that this changes vlv_find_best_dpll() in two ways:
- The .vco comparison is now >max instead of >=max, and since we round
  down when calculating that stuff, we may now allow frequencies slightly
  above the max as we do on other platforms. The previous method
  disallowed exactly max and anything above it.
- We now check the .dot frequency against the data rate limits, which we
  didn't do before.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c