drm/i915: Skip waking the signaler when enabling before request submission
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Apr 2017 08:06:59 +0000 (09:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Apr 2017 10:51:31 +0000 (11:51 +0100)
commitf7b02a529a81761b44d7fa164bd84333f3232989
tree0aa3fad43bdb2b16780f8d3529c1ac8b2b45b496
parent010018638659fbe8332c470e94750daf6ef4ab14
drm/i915: Skip waking the signaler when enabling before request submission

If we are enabling the breadcrumbs signaling prior to submitting the
request, we know that we cannot have missed the interrupt and can
therefore skip immediately waking the signaler to check.

This reduces a significant chunk of the __i915_gem_request_submit()
overhead for inter-engine synchronisation, for example in gem_exec_whisper.

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