]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Context objects can never be active when freed
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Jun 2018 10:06:04 +0000 (11:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Jun 2018 15:28:23 +0000 (16:28 +0100)
commit6d9ac39348071758a9225bb8f1cf8f1deb2a1736
tree38244d6a11bdac5509aaa343a013a44c0f78a973
parent68ee36f1b9a6c3f012d6a17e6fcdbd2f28a18b57
drm/i915: Context objects can never be active when freed

Due to how we only release the pining on the context state on
retirement and never track activity on the context vma itself, the
object can never be active at the point of release. Replace the
conditional transfer of ownership onto an active-reference with an
assert that the object is idle.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180625100604.22598-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c