drm/i915: Save/restore cursor state on suspend/resume.
commit4bfdb0701873595fb9deb86e7c3c03925a123430
authorEric Anholt <eric@anholt.net>
Wed, 3 Jun 2009 07:26:58 +0000 (3 07:26 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:18 +0000 (16 14:18 -0700)
treecc8392ca0a738cbbd93fe32d8509af37173d6567
parentbda91e0e8dbd2b2a2c929411b288f0c3a16de8fa
drm/i915: Save/restore cursor state on suspend/resume.

(cherry picked from commit 1fd1c624362819ecc36db2458c6a972c48ae92d6)

This may fix cursor corruption in X on resume, which would persist until
the cursor was hidden and then shown again.

V2: Also include the cursor control regs.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_suspend.c