drm/i915: Make context pinning part of intel_context_ops
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Mar 2019 13:25:20 +0000 (13:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Mar 2019 13:59:59 +0000 (13:59 +0000)
commit95f697eb024d7def7f9050cd5eba9502034dd94d
tree24577c5516ef1f53609e9fe99585c7eae87c1b50
parentc4d52feb2c46ddcdde4058cf03f8b9eb996bb09b
drm/i915: Make context pinning part of intel_context_ops

Push the intel_context pin callback down from intel_engine_cs onto the
context itself by virtue of having a central caller for
intel_context_pin() being able to lookup the intel_context itself.

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/20190308132522.21573-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_context.c
drivers/gpu/drm/i915/intel_context.h
drivers/gpu/drm/i915/intel_context_types.h
drivers/gpu/drm/i915/intel_engine_types.h
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/selftests/mock_engine.c