[Intel-gfx] [CI v3 11/33] drm/i915: Store backpointer to intel_gt in the engine

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 20 15:36:48 UTC 2019


Quoting Tvrtko Ursulin (2019-06-20 16:31:36)
> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
> index 82b7ace62d97..82fe6d5f08d4 100644
> --- a/drivers/gpu/drm/i915/gt/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
> @@ -3290,6 +3290,7 @@ intel_execlists_create_virtual(struct i915_gem_context *ctx,
>                 return ERR_PTR(-ENOMEM);
>  
>         ve->base.i915 = ctx->i915;
> +       ve->base.gt = siblings[0]->gt;

That poses an interesting dilemma:

	if (siblings[n]->gt != ve->base.gt)
		return -EINVAL?


More information about the Intel-gfx mailing list