diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2014-01-08 08:12:28 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-08 12:33:56 -0500 |
commit | 89eff4bea721700d1f4d5ffd3fdc99bb0de9e962 (patch) | |
tree | bb1c0602a960827ba5fa4670c01c8002c7f4885c /drivers/gpu/drm | |
parent | e59150dcf7e126ebf89afacd372602f328d4d6fc (diff) |
drm/i915: fix wrong PLL debug messages.
LPT does have PCH refclk, but it's different form the IBX/CPT/PPT one
and doesn't use the same structs. It is wrong to have a message saying
that "LPT does not has PCH refclk" (sic). While at it, signal that we
only want this function on IBX/CPT/PPT by renaming it and adding a
WARN.
On HSW we also print "0 shared PLLs initialized", but we *do* have
shared PLLs on HSW (LCPLL, WRPLL, SPLL) and we *do* initialize them.
We just don't use "struct intel_shared_dpll". So remove the debug
message.
In the future we may want to rename all that "intel shared pll" code
to "ibx shared pll", but I'll leave this to another patch.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 767e05c2cb76..bc520eb698a1 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -1211,15 +1211,12 @@ static void assert_sprites_disabled(struct drm_i915_private *dev_priv, | |||
1211 | } | 1211 | } |
1212 | } | 1212 | } |
1213 | 1213 | ||
1214 | static void assert_pch_refclk_enabled(struct drm_i915_private *dev_priv) | 1214 | static void ibx_assert_pch_refclk_enabled(struct drm_i915_private *dev_priv) |
1215 | { | 1215 | { |
1216 | u32 val; | 1216 | u32 val; |
1217 | bool enabled; | 1217 | bool enabled; |
1218 | 1218 | ||
1219 | if (HAS_PCH_LPT(dev_priv->dev)) { | 1219 | WARN_ON(!(HAS_PCH_IBX(dev_priv->dev) || HAS_PCH_CPT(dev_priv->dev))); |
1220 | DRM_DEBUG_DRIVER("LPT does not has PCH refclk, skipping check\n"); | ||
1221 | return; | ||
1222 | } | ||
1223 | 1220 | ||
1224 | val = I915_READ(PCH_DREF_CONTROL); | 1221 | val = I915_READ(PCH_DREF_CONTROL); |
1225 | enabled = !!(val & (DREF_SSC_SOURCE_MASK | DREF_NONSPREAD_SOURCE_MASK | | 1222 | enabled = !!(val & (DREF_SSC_SOURCE_MASK | DREF_NONSPREAD_SOURCE_MASK | |
@@ -10077,7 +10074,7 @@ static void ibx_pch_dpll_enable(struct drm_i915_private *dev_priv, | |||
10077 | struct intel_shared_dpll *pll) | 10074 | struct intel_shared_dpll *pll) |
10078 | { | 10075 | { |
10079 | /* PCH refclock must be enabled first */ | 10076 | /* PCH refclock must be enabled first */ |
10080 | assert_pch_refclk_enabled(dev_priv); | 10077 | ibx_assert_pch_refclk_enabled(dev_priv); |
10081 | 10078 | ||
10082 | I915_WRITE(PCH_DPLL(pll->id), pll->hw_state.dpll); | 10079 | I915_WRITE(PCH_DPLL(pll->id), pll->hw_state.dpll); |
10083 | 10080 | ||
@@ -10145,8 +10142,6 @@ static void intel_shared_dpll_init(struct drm_device *dev) | |||
10145 | dev_priv->num_shared_dpll = 0; | 10142 | dev_priv->num_shared_dpll = 0; |
10146 | 10143 | ||
10147 | BUG_ON(dev_priv->num_shared_dpll > I915_NUM_PLLS); | 10144 | BUG_ON(dev_priv->num_shared_dpll > I915_NUM_PLLS); |
10148 | DRM_DEBUG_KMS("%i shared PLLs initialized\n", | ||
10149 | dev_priv->num_shared_dpll); | ||
10150 | } | 10145 | } |
10151 | 10146 | ||
10152 | static void intel_crtc_init(struct drm_device *dev, int pipe) | 10147 | static void intel_crtc_init(struct drm_device *dev, int pipe) |