drm/i915: Explicitly pin the logical context for execbuf
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 Apr 2019 05:01:43 +0000 (06:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 Apr 2019 05:35:35 +0000 (06:35 +0100)
commit8f2a1057d6ec217aefb8bf0de6996294452a2577
tree6053cf1b717f04ef7256a7af32dadb958b396f92
parent79ffac8599c4d8aa84d313920d3d86d7361c252b
drm/i915: Explicitly pin the logical context for execbuf

In order to separate the reservation phase of building a request from
its emission phase, we need to pull some of the request alloc activities
from deep inside i915_request to the surface, GEM_EXECBUFFER.

v2: Be frivolous, use a local drm_i915_private.

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