]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Only wait for GPU activity before unbinding a GGTT fence
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Apr 2020 21:01:02 +0000 (22:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Apr 2020 22:34:16 +0000 (23:34 +0100)
commite9c140648712290aaf15772680f5324eb4d19ef9
tree4e429fe3fe6f4777cb935ca2a7c93c1a4468cb79
parent161d67bc74ee81dbecc8b872850b7639d3229e25
drm/i915/gt: Only wait for GPU activity before unbinding a GGTT fence

Only GPU activity via the GGTT fence is asynchronous, we know that we
control the CPU access directly, so we only need to wait for the GPU to
stop using the fence before we relinquish it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200401210104.15907-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h
drivers/gpu/drm/i915/i915_vma.c