drm/i915/gt: Repeat wait_for_idle for retirement workers
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Dec 2019 18:02:04 +0000 (18:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Dec 2019 18:56:24 +0000 (18:56 +0000)
commit4856254d48d3d4435f4919dc505c9749e33eec7d
tree17bd7bd67df23a203aae605a28bb617f43a5540a
parente6ba76480299a0d77c51d846f7467b1673aad25b
drm/i915/gt: Repeat wait_for_idle for retirement workers

Since we may retire timelines from secondary workers,
intel_gt_retire_requests() is not always a reliable indicator that all
pending retirements are complete. If we do detect secondary workers are
in progress, recommend intel_gt_wait_for_idle() to repeat the retirement
check.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191221180204.1201217-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_gt_requests.c