drm/i915: check the power well on i915_pipe_enabled
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 3 May 2013 15:15:39 +0000 (12:15 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 May 2013 19:56:32 +0000 (21:56 +0200)
This fixes "unclaimed register" messages when the power well is
disabled and there's a GPU hang.

v2: Use the new intel_display_power_enabled().
v3: Use the new domains for intel_display_power_enabled().

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>
drivers/gpu/drm/i915/i915_irq.c

index 03a31befa8fd0c453cfc52f3642b7ce4acf288b5..161101f4271720f24bb6d02219d888a83c482676 100644 (file)
@@ -384,6 +384,10 @@ i915_pipe_enabled(struct drm_device *dev, int pipe)
        enum transcoder cpu_transcoder = intel_pipe_to_cpu_transcoder(dev_priv,
                                                                      pipe);
 
+       if (!intel_display_power_enabled(dev,
+               POWER_DOMAIN_TRANSCODER(cpu_transcoder)))
+               return false;
+
        return I915_READ(PIPECONF(cpu_transcoder)) & PIPECONF_ENABLE;
 }
 
This page took 0.031394 seconds and 5 git commands to generate.