]> 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)
commit0083c12ad6948e9b6ace4bfabd6ea4b3a306ed1e
tree543d223694036ee40d50ffb8cf6b7163ce6f1746
parentaf2112f04f82c980c8e3666be61e54cd4ebb8830
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