]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Assert there are no simple cycles in the dependencies
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jan 2018 15:12:26 +0000 (15:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jan 2018 12:09:44 +0000 (12:09 +0000)
commit26ca737719959058748afb75335f385aa3e1d1a7
tree5a7eea6692e33197ee8d0b0612504f8613f01516
parentbe01a218780608f858ada332905d778e9c586aa2
drm/i915/execlists: Assert there are no simple cycles in the dependencies

The dependency chain must be an acyclic graph. This is checked by the
swfence, but for sanity, also do a simple check that we do not corrupt
our list iteration in execlists_schedule() by a shallow dependency
cycle.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180102151235.3949-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c