]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Reduce lock contention between schedule/submit_request
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 May 2017 12:10:05 +0000 (13:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 May 2017 12:38:13 +0000 (13:38 +0100)
commit4dbb7bf8c19bd874006f3e13ca58512c96b62a7e
tree47313c4d515f04daf17f46cb798cd1a8ba20d53c
parentd8a25704ad66e493c789cd3fd477b3075936804e
drm/i915/execlists: Reduce lock contention between schedule/submit_request

If we do not require to perform priority bumping, and we haven't yet
submitted the request, we can update its priority in situ and skip
acquiring the engine locks -- thus avoiding any contention between us
and submit/execute.

v2: Remove the stack element from the list if we can do the early
assignment.

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