drm/i915: check for GT faults in all resume handlers and driver load time
authorImre Deak <imre.deak@intel.com>
Thu, 23 Oct 2014 16:23:21 +0000 (19:23 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Oct 2014 14:34:18 +0000 (16:34 +0200)
commited49388384b19ed37567053de7b4087ba990813e
tree894049717e6f02d1cab9aec5f4b4a6c2ccd5bd76
parentf4a12ead50580c17c3641ac1a453e68b5a5195dd
drm/i915: check for GT faults in all resume handlers and driver load time

Checking for GT faults is not specific in any way to S4 thaw, so do it
also during S3 resume, S4 restore and driver load time. This allows us to
unify the Sx handlers in an upcoming patch.

v2:
- move the check to intel_uncore_early_sanitize(), so we check at driver
  load time too (Chris)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-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