]> 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)
commit7d8c2c3ce97e816e8e0e8121aaa0941dfcbe877a
tree4e429fe3fe6f4777cb935ca2a7c93c1a4468cb79
parent0f3567ffbc5b992b3c81ea99673acd9bc3fa91d1
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