]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Be defensive when starting vma activity
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 10:05:31 +0000 (11:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 13:23:45 +0000 (14:23 +0100)
commit42944ebdf23308f35c43c4254ff38fcc4aac5415
tree194052224b99a31d52fd12e3d20e92b9f22a68a2
parentbeb64e048263a540d0a2be4e45deeea132652a51
drm/i915: Be defensive when starting vma activity

Before we acquire the vma for GPU activity, ensure that the underlying
object is not already in the process of being freed.

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/20190820100531.8430-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h