OSDN Git Service

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)
commitce01b173773a09e2b5d3007c26d11cbd7737c3fe
tree5a7eea6692e33197ee8d0b0612504f8613f01516
parent83cc84c5a848748d4bb190bc179a7620491a925f
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