Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: Skip engine serialisation for no-op seqno reset

If the engine's seqno is already at our target seqno (most likely it
hasn't been used since the last reset), we can skip serialising the
engine and leave it as is.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181126095610.20962-1-chris@chris-wilson.co.uk

+3
+3
drivers/gpu/drm/i915/i915_request.c
··· 136 136 intel_engine_get_seqno(engine), 137 137 seqno); 138 138 139 + if (seqno == engine->timeline.seqno) 140 + continue; 141 + 139 142 kthread_park(engine->breadcrumbs.signaler); 140 143 141 144 if (!i915_seqno_passed(seqno, engine->timeline.seqno)) {