drm/i915: Don't enable the cursor on a disable pipe
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 17 Sep 2013 15:33:44 +0000 (18:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:40:59 +0000 (09:40 -0700)
commit7ad24d0b37bbbe6eea2c723c84bcd6b529711c80
tree02d887e92c88ce6efdf99f525627be5a031ada38
parentcce85343c70f468d3d119016c280cc3b7d30db39
drm/i915: Don't enable the cursor on a disable pipe

commit f2f5f771c5fc0fa252cde3d0d0452dcc785cc17a upstream.

On HSW enabling a plane on a disabled pipe may hang the entire system.
And there's no good reason for doing it ever, so just don't.

v2: Move the crtc active checks to intel_crtc_cursor_{set,move} to
    avoid confusing people during modeset

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_display.c