drm/i915: Only save/restore cursor regs if !KMS
commitf3c91c1deaf8493526d8216be94c33e963f00962
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 21 Nov 2010 09:56:00 +0000 (21 09:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 21 Nov 2010 09:56:00 +0000 (21 09:56 +0000)
treebe2f51e31a3619b807222738bca9ee3daf7f4257
parentd1d788302e8c76e5138dfa61f4a5eee4f72a748f
drm/i915: Only save/restore cursor regs if !KMS

Under KMS, restoring the cursor is handled upon modeswitch in order to
avoid enabling an undefined set of registers. At the moment, the cursor
is restored before the aperture and modes are fully setup causing some
invalid access during resume, such as:

  PGTBL_ER: 0x00040000
    Invalid GTT entry during Cursor Fetch

Fix this by only performing cursor register save/restore under UMS where
it is done in the correct sequence.

Reported-by: Arkadiusz Miskiewicz <arekm@maven.pl>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_suspend.c