diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-09 08:57:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-09 13:48:00 +0000 |
commit | b11b28ea0dd16c9e13d279a9bdcf5b6eb3b5108a (patch) | |
tree | 060ebc7a7e0affdb40d31e7463fcad0e7b3f0e26 /drivers/gpu/drm/i915/gt/mock_engine.c | |
parent | 89f98d634f6b7a8433b59fef1543634b20fc18f2 (diff) | |
download | linux-b11b28ea0dd16c9e13d279a9bdcf5b6eb3b5108a.tar.gz linux-b11b28ea0dd16c9e13d279a9bdcf5b6eb3b5108a.tar.bz2 linux-b11b28ea0dd16c9e13d279a9bdcf5b6eb3b5108a.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/gt/mock_engine.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/mock_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/mock_engine.c b/drivers/gpu/drm/i915/gt/mock_engine.c index d0e68ce9aa51..a560b7eee2cd 100644 --- a/drivers/gpu/drm/i915/gt/mock_engine.c +++ b/drivers/gpu/drm/i915/gt/mock_engine.c @@ -149,7 +149,7 @@ static int mock_context_alloc(struct intel_context *ce) static int mock_context_pin(struct intel_context *ce) { - return intel_context_active_acquire(ce); + return 0; } static void mock_context_reset(struct intel_context *ce) |