]> 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)
commit2cef673be4c3025a5df7622df3b92c1420ccc9e7
tree95af2333f4f5719005f63486b7a7ac8032ace8fc
parentb501b4544d01349e196d5869a925d4c5ff5f747a
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