drm/i915/guc: Reorder __i915_guc_submit to reduce spinlock holdtime
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Feb 2017 11:28:03 +0000 (11:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Feb 2017 14:56:45 +0000 (14:56 +0000)
commit0c33518db7d394d4eef1ce13f9dce32713f14beb
tree60324b8bfd05ff41e03f54a28c431532eae22233
parent349ab9192cc32e578ce981936c6ab99ae3a96165
drm/i915/guc: Reorder __i915_guc_submit to reduce spinlock holdtime

A couple of operations, the flushes and the tracepoint, do not require
serialisation by client->wq_lock, so move them before we take it.

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