From: Alban Browaeys Date: Fri, 24 Feb 2012 17:12:45 +0000 (+0000) Subject: drm/i915: Prevent a machine hang by checking crtc->active before loading lut X-Git-Tag: v3.2.10~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7554566fdd9b0aaff15dfda98e3a6706408a825;p=pandora-kernel.git drm/i915: Prevent a machine hang by checking crtc->active before loading lut commit aed3f09db39596e539f90b11a5016aea4d8442e1 upstream. Before loading the lut (gamma), check the active state of intel_crtc, otherwise at least on gen2 hang ensue. This is reproducible in Xorg via: xset dpms force off then xgamma -rgamma 2.0 # freeze. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44505 Signed-off-by: Alban Browaeys Signed-off-by: Chris Wilson Reviewed-by: Jesse Barnes Signed-off-by: Jesse Barnes Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed