]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Treat a busy timeline as 'active' while waiting
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 6 Oct 2019 16:49:54 +0000 (17:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Oct 2019 20:44:02 +0000 (21:44 +0100)
commitba7a719021aa603bd9de9cd98ce205c495229cd0
tree0395426f78d9d651821f1d35b1fd01e7195bf599
parentb614daed82e7694f9cac4d70fa1835c53879b6bb
drm/i915/gt: Treat a busy timeline as 'active' while waiting

If we cannot claim the timeline->mutex while preparing for a wait on it,
we have to skip the timeline. In doing so, treat it as active so that
under a intel_gt_wait_for_idle() loop, we repeat the wait after
scheduling away.

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