mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
drm/i915: Remove unused live_context_for_engine
The last use of live_context_for_engine() was removed in 2021 by
commit 99919be74a ("drm/i915/gem: Zap the i915_gem_object_blt code")
Remove it.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250125003846.228514-1-linux@treblig.org
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
367d7bc6d5
commit
93b69c0482
|
|
@ -107,44 +107,6 @@ live_context(struct drm_i915_private *i915, struct file *file)
|
|||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
struct i915_gem_context *
|
||||
live_context_for_engine(struct intel_engine_cs *engine, struct file *file)
|
||||
{
|
||||
struct i915_gem_engines *engines;
|
||||
struct i915_gem_context *ctx;
|
||||
struct intel_sseu null_sseu = {};
|
||||
struct intel_context *ce;
|
||||
|
||||
engines = alloc_engines(1);
|
||||
if (!engines)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
ctx = live_context(engine->i915, file);
|
||||
if (IS_ERR(ctx)) {
|
||||
__free_engines(engines, 0);
|
||||
return ctx;
|
||||
}
|
||||
|
||||
ce = intel_context_create(engine);
|
||||
if (IS_ERR(ce)) {
|
||||
__free_engines(engines, 0);
|
||||
return ERR_CAST(ce);
|
||||
}
|
||||
|
||||
intel_context_set_gem(ce, ctx, null_sseu);
|
||||
engines->engines[0] = ce;
|
||||
engines->num_engines = 1;
|
||||
|
||||
mutex_lock(&ctx->engines_mutex);
|
||||
i915_gem_context_set_user_engines(ctx);
|
||||
engines = rcu_replace_pointer(ctx->engines, engines, 1);
|
||||
mutex_unlock(&ctx->engines_mutex);
|
||||
|
||||
engines_idle_release(ctx, engines);
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
struct i915_gem_context *
|
||||
kernel_context(struct drm_i915_private *i915,
|
||||
struct i915_address_space *vm)
|
||||
|
|
|
|||
|
|
@ -23,9 +23,6 @@ void mock_context_close(struct i915_gem_context *ctx);
|
|||
struct i915_gem_context *
|
||||
live_context(struct drm_i915_private *i915, struct file *file);
|
||||
|
||||
struct i915_gem_context *
|
||||
live_context_for_engine(struct intel_engine_cs *engine, struct file *file);
|
||||
|
||||
struct i915_gem_context *kernel_context(struct drm_i915_private *i915,
|
||||
struct i915_address_space *vm);
|
||||
void kernel_context_close(struct i915_gem_context *ctx);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user