]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Pull context activation into central intel_context_pin()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Jan 2020 08:57:16 +0000 (08:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Jan 2020 13:48:00 +0000 (13:48 +0000)
commit1c6e213461776e786a0796595cc02edb73ce181d
tree060ebc7a7e0affdb40d31e7463fcad0e7b3f0e26
parentdb2eb4293d068392401c6f96f50b2bdd075969a8
drm/i915/gt: Pull context activation into central intel_context_pin()

While this is encroaching on midlayer territory, having already made the
state allocation a previous step in pinning, we can now pull the common
intel_context_active_acquire() into intel_context_pin() itself. This is
a prelude to make the activation a separate step inside pinning, outside
of the ce->pin_mutex

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200109085717.873326-2-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/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_ring_submission.c
drivers/gpu/drm/i915/gt/mock_engine.c