drm/i915/gt: Check for arbitration after writing start seqno
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jan 2021 10:07:58 +0000 (10:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jan 2021 11:44:54 +0000 (11:44 +0000)
commit1a51b50c72372dc33b589a2dc72b292a34be23d8
tree95af2333f4f5719005f63486b7a7ac8032ace8fc
parent8c1f21273e22e3b4a4958440e695190661303244
drm/i915/gt: Check for arbitration after writing start seqno

On the off chance that we need to arbitrate before launching the
payload, perform the check after we signal the request is ready to
start. Assuming instantaneous processing of the CS event, the request
will then be treated as having started when we make the decisions as to
how to process that CS event.

v2: More commentary about the users of i915_request_started() as a
reminder about why we are marking the initial breadcrumb.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210112100759.32698-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/gen8_engine_cs.c