]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Teach execbuffer to take the engine wakeref not GT
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 4 Aug 2019 12:48:25 +0000 (13:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 4 Aug 2019 13:31:17 +0000 (14:31 +0100)
commitd72558a76f390101ad99d28ba578599085502144
tree543d223694036ee40d50ffb8cf6b7163ce6f1746
parent605555b562ac9aa1b288e8c9bf91dd302a32b617
drm/i915: Teach execbuffer to take the engine wakeref not GT

In the next patch, we would like to couple into the engine wakeref to
free the batch pool on idling. The caveat here is that we therefore want
to track the engine wakeref more precisely and to hold it instead of the
broader GT wakeref as we process the ioctl.

v2: Avoid introducing odd semantics for a shortlived timeline->mutex
acquisition interface.

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/20190804124826.30272-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c