drm/i915/execlists: Lift opportunistic process_csb to before engine lock
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jun 2020 22:11:13 +0000 (23:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 13 Jun 2020 09:15:54 +0000 (10:15 +0100)
commit3d09677a07f017c42c80d04ba70ef23d7499fc46
tree1009e96435c9cd6272b15140fd630843f1997b6b
parent51dc276dd2af20ae9468afbd864fa8b0e1c75827
drm/i915/execlists: Lift opportunistic process_csb to before engine lock

Since the process_csb() does not require us to hold the
engine->active.lock, we can move the opportunistic flush before
direction submission to outside of the lock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200612221113.9129-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c