]> 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)
commit6b736de5746a304692fc5f7f5fc46cd9c2e8bd29
treeecc17c9f1d620b2dcc5b7ea296b0177b642a3370
parent1b1ae40721ea2d90135b39b663b20c30339f94dc
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