aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-04-18 15:35:40 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-19 04:06:27 -0400
commit2bfce95075fa58eaf2ead5b0863c50a3f6098bc2 (patch)
tree66015088a3383abc8e4be3995a693042ea7648e9 /drivers/gpu/drm/i915/intel_display.c
parentde032bf40a52dbbada11e071d150d2c062b5527e (diff)
drm/i915: check the power well inside haswell_get_pipe_config
This fixes "unclaimed register" messages when booting with eDP only and i915.disable_power_well=1. The error messages were caused by: commit 0e8ffe1bf81b0780cc6229cb38664754dffe8776 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Thu Mar 28 10:42:00 2013 +0100 drm/i915: add hw state readout/checking for pipe_config 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/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 8a96c998ee53..6f7e4cc35d99 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5978,9 +5978,14 @@ static bool haswell_get_pipe_config(struct intel_crtc *crtc,
5978{ 5978{
5979 struct drm_device *dev = crtc->base.dev; 5979 struct drm_device *dev = crtc->base.dev;
5980 struct drm_i915_private *dev_priv = dev->dev_private; 5980 struct drm_i915_private *dev_priv = dev->dev_private;
5981 enum transcoder cpu_transcoder = crtc->config.cpu_transcoder;
5981 uint32_t tmp; 5982 uint32_t tmp;
5982 5983
5983 tmp = I915_READ(PIPECONF(crtc->config.cpu_transcoder)); 5984 if (!intel_using_power_well(dev_priv->dev) &&
5985 cpu_transcoder != TRANSCODER_EDP)
5986 return false;
5987
5988 tmp = I915_READ(PIPECONF(cpu_transcoder));
5984 if (!(tmp & PIPECONF_ENABLE)) 5989 if (!(tmp & PIPECONF_ENABLE))
5985 return false; 5990 return false;
5986 5991