OSDN Git Service

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)
commita4e57f9031ccd543c549a34524af16c0c246e628
tree543d223694036ee40d50ffb8cf6b7163ce6f1746
parent515b8b7e935ef3f59c4efda04a3b05353ed6fbb7
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