]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add assert for no pending GPU requests during suspend/resume in LR mode
authorImre Deak <imre.deak@intel.com>
Mon, 7 Nov 2016 09:20:05 +0000 (11:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 7 Nov 2016 12:48:05 +0000 (14:48 +0200)
commit2b6470b041c919b7bfaee75c01bf04267a1f6640
tree66f2e0147ca1f38d430d9a3b5b42d35e8a0c9e80
parent191af5e24d15557d8bdb5af650c30936027bfa86
drm/i915: Add assert for no pending GPU requests during suspend/resume in LR mode

During resume we will reset the SW/HW tracking for each ring head/tail
pointers and so are not prepared to replay any pending requests (as
opposed to GPU reset time). Add an assert for this both to the suspend
and the resume code.

v2:
- Check for ELSP port idle already during suspend and check !gt.awake
  during resume. (Chris)
v3:
- Move the !gt.awake check to i915_gem_resume().
v4:
- s/intel_lr_engines_idle/intel_execlists_idle/ (Chris)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1478510405-11799-4-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_gem.c