drm/i915: Reset forcewake before suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Mar 2014 11:05:02 +0000 (11:05 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Mar 2014 11:26:13 +0000 (12:26 +0100)
commit28d85cd367a3f5b4d891ebe9aaaa88a5c73a3a96
treebe83e2d705bf3fb1a6067c70afa54005cc32e5ac
parent3ddffb7b8a7e296af4ff22b953836ac6bc484b76
drm/i915: Reset forcewake before suspend

Now that we regularly defer the forcewake dance to a timer func, it is
likely to fire after we disable the device during suspend. This
generates an oops as we detect inconsistency in the hardware state. So
before suspend, we want to complete the outstanding dance and generally
sanitize the registers before handing back to the BIOS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_uncore.c