]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Lock the gem_context->active_list while dropping the link
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 18 Mar 2019 21:23:46 +0000 (21:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Mar 2019 08:21:11 +0000 (08:21 +0000)
commita0a2f7f3e6cdfa062eaf0eace760e9fe9305fd73
treea0b2f3457f4c0681c692a0420477e219e1b77f39
parent21ca8f929bbc28b56d6f16a195e43303a0c2dd41
drm/i915: Lock the gem_context->active_list while dropping the link

On unpinning the intel_context, we remove it from the active list
inside the GEM context. This list is supposed to be guarded by the GEM
context mutex, so remember to take it!

Fixes: 3620525e5efd ("drm/i915: Track active engines within a context")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190318212347.30146-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_context.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/selftests/mock_engine.c