]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbfcbf06754d091769bb5be69fa22ed1b7d701e53
tree95af2333f4f5719005f63486b7a7ac8032ace8fc
parentee6113235fae7fac3cd0d7507c864456551dbfaa
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