drm/i915: Emit dma-fence (and execlists submit) first from signaler
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 11:00:09 +0000 (11:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 16:00:26 +0000 (16:00 +0000)
commit7c9e934ef8a09a1a42f15ce9f0f872fdfdb67b97
tree1a1661e0e1f645e3dc4b98d0bf071e6b56af692f
parent48ea2554f46e7c1771dba1529a17aa04792871b2
drm/i915: Emit dma-fence (and execlists submit) first from signaler

When introduced, I thought that reducing client latency from the
signaler was the priority. Since its inception the signaler has become
responsible for keeping the execlists full, via the dma-fence. As this
is very important to minimise overall execution time, signal the
dma-fence first and then signal any waiting clients.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170124110009.28947-8-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c