]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Simply walk back along request timeline on reset
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 12:41:25 +0000 (12:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 16:09:44 +0000 (16:09 +0000)
commit8e1d1c8b4871a0a482220dc572df978264b39223
treed4dd16084feff492b5238dbdb46e40254b748370
parent6ebc6adceb919962e5f15111c2faff2942375f9b
drm/i915/execlists: Simply walk back along request timeline on reset

The request's timeline will only contain requests from this context, in
order of execution. Therefore, we can simply look back along this
timeline to find the currently executing request.

If we do find that the current context has completed its last request,
that does not imply that all requests are completed in the context, so
only advance the ring->head up to the end of the known completions!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028124125.25176-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c