OSDN Git Service

drm/i915/gt: Flush ongoing retires during wait_for_idle
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jan 2020 23:16:04 +0000 (23:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Jan 2020 00:33:07 +0000 (00:33 +0000)
commitcdd280b1b9b15217b404276b3e703e2764cad8c3
treeacc500ac757525b88df02defdd76aee3bf634686
parent9dae9e5381e02846e523507876966fd80fbb2e97
drm/i915/gt: Flush ongoing retires during wait_for_idle

Synchronise with any background retires and parking we may have spawned,
so that all requests are accounted for.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/878
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/20200102231604.1669010-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gt_requests.c
drivers/gpu/drm/i915/intel_wakeref.c
drivers/gpu/drm/i915/intel_wakeref.h