drm/i915/execlists: Drop preemption arbitrations points along the ring
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 May 2018 19:54:16 +0000 (20:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 May 2018 06:30:32 +0000 (07:30 +0100)
commit74f9474124ea53f98866e434a8080f1538b8c2b7
tree0954e540b50becc3ab2889b3ce50eac86b5bf39f
parent7c572e1bdf8dea0c84ce8da01a84cdaa26d8e138
drm/i915/execlists: Drop preemption arbitrations points along the ring

Limit the arbitration (where preemption may occur) to inside the batch,
and prevent it from happening on the pipecontrols/flushes we use to
write the breadcrumb seqno. Once the user batch is complete, we have
nothing left to do but serialise and emit the breadcrumb; switching
contexts at this point is futile so don't.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: MichaƂ Winiarski <michal.winiarski@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180503195416.22498-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c