]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit213b309259d91a331dda002be21af523f06e0467
tree17bd7bd67df23a203aae605a28bb617f43a5540a
parent590c19018488a063d30d596599c1bd186d13fefb
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