drm/i915/execlists: Assign virtual_engine->uncore from first sibling
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Oct 2019 07:03:42 +0000 (08:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Oct 2019 09:14:29 +0000 (10:14 +0100)
Copy across the engine->uncore shortcut to the virtual_engine from its
first physical engine, similar to the handling of the engine->gt
backpointer.

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/20191008070342.4045-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c

index 432b8b60c4c03f68e06762d6bcd31afa97d58e55..6db762c509b8e7bd61568a0c0a84a92a530ab82f 100644 (file)
@@ -4170,6 +4170,7 @@ intel_execlists_create_virtual(struct i915_gem_context *ctx,
 
        ve->base.i915 = ctx->i915;
        ve->base.gt = siblings[0]->gt;
+       ve->base.uncore = siblings[0]->uncore;
        ve->base.id = -1;
        ve->base.class = OTHER_CLASS;
        ve->base.uabi_class = I915_ENGINE_CLASS_INVALID;