]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pass intel_context to intel_context_pin_lock()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Apr 2019 16:33:32 +0000 (17:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Apr 2019 17:32:05 +0000 (18:32 +0100)
commit7facdf21ecf7d3679cc8915d72f908a6027e681b
treeecc17c9f1d620b2dcc5b7ea296b0177b642a3370
parent78e6dcb449ea9bafed99152a5bb315be46e18a0a
drm/i915: Pass intel_context to intel_context_pin_lock()

Move the intel_context_instance() to the caller so that we can decouple
ourselves from one context instance per engine.

v2: Rename pin_lock() to lock_pinned(), hopefully that is clearer.

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/20190426163336.15906-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/gt/intel_context.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/selftests/i915_gem_context.c