drm/i915/gt: Make fence revocation unequivocal
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Apr 2020 21:01:04 +0000 (22:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Apr 2020 22:34:17 +0000 (23:34 +0100)
commit0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1
tree24bb1feefc61a27a9df610080cb136b258f1f9f9
parent725c9ee7fc6ddbfd0f0fa3e59b8021e9420a3198
drm/i915/gt: Make fence revocation unequivocal

If we must revoke the fence because the VMA is no longer present, or
because the fence no longer applies, ensure that we do and convert it
into an error if we try but cannot.

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-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h