]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move list of timelines under its own lock
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 10:23:56 +0000 (10:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 16:24:22 +0000 (16:24 +0000)
commitaa8bcfee9e71a49db9dd8feee5a6e2809eb9293b
treeb48938fe29b0fea0391f5a9d31feb248912dd4c3
parent007e4f50a78de2a155436bf3d6a8ac9efd738875
drm/i915: Move list of timelines under its own lock

Currently, the list of timelines is serialised by the struct_mutex, but
to alleviate difficulties with using that mutex in future, move the
list management under its own dedicated mutex.

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/20190128102356.15037-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_reset.c
drivers/gpu/drm/i915/i915_timeline.c
drivers/gpu/drm/i915/i915_timeline.h
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/selftests/mock_timeline.c