drm/i915/execlists: Wait for ELSP submission on restart
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 May 2018 10:19:37 +0000 (11:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 May 2018 12:39:49 +0000 (13:39 +0100)
commitfe25f3048322f32131a151ebe213f52821322f9c
tree4ff11df5ed087d4138748f924535907c630fcb7e
parent9a4dc80399b1630cea0f1ad8ef0417436cbb95d0
drm/i915/execlists: Wait for ELSP submission on restart

After a reset, we will ensure that there is at least one request
submitted to HW to ensure that a context is loaded for powersaving.
Let's wait for this submission via a tasklet to complete before we drop
our forcewake, ensuring the system is ready for rc6 before we let it
possibly sleep.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180522101937.7738-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem.h
drivers/gpu/drm/i915/intel_lrc.c