]> git.hungrycats.org Git - linux/commit
drm/i915: Prevent a machine hang by checking crtc->active before loading lut
authorAlban Browaeys <prahal@yahoo.com>
Fri, 24 Feb 2012 17:12:45 +0000 (17:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:22 +0000 (12:31 -0700)
commitc7554566fdd9b0aaff15dfda98e3a6706408a825
tree2e2f4de4dfe34f0785ffed66d864192297109efa
parentda42eb9e4a1ee35439534941c89918a8d8a9ee59
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 <prahal@yahoo.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_display.c