]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Hold reference to previous active fence as we queue
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Feb 2020 09:41:47 +0000 (09:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Feb 2020 11:25:39 +0000 (11:25 +0000)
commit6683bc7deb86d0ea3515d05485fe79efaf5a239e
tree637508a1efec53596a06c8fcc2bc94b0c45342f2
parenta04fb9c4aa4cf1c8d1888dbd5e86c1c7e0d0166c
drm/i915: Hold reference to previous active fence as we queue

Take a reference to the previous exclusive fence on the i915_active, as
we wish to add an await to it in the caller (and so must prevent it from
being freed until we have completed that task).

Fixes: 61f62a71bd0f ("drm/i915: Use the async worker to avoid reclaim tainting the ggtt->mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200203094152.4150550-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_active.c
drivers/gpu/drm/i915/i915_vma.c