[Intel-gfx] [PATCH] drm/i915/selftests: Assign the engine->uncore shortcut

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Tue Oct 8 09:12:47 UTC 2019


On 08/10/2019 08:11, Chris Wilson wrote:
> Set up the engine->uncore shortcut on mock_engine creation.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>   drivers/gpu/drm/i915/gt/mock_engine.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/i915/gt/mock_engine.c b/drivers/gpu/drm/i915/gt/mock_engine.c
> index 5d43cbc3f345..3d88397c0dbb 100644
> --- a/drivers/gpu/drm/i915/gt/mock_engine.c
> +++ b/drivers/gpu/drm/i915/gt/mock_engine.c
> @@ -248,6 +248,7 @@ struct intel_engine_cs *mock_engine(struct drm_i915_private *i915,
>   	/* minimal engine setup for requests */
>   	engine->base.i915 = i915;
>   	engine->base.gt = &i915->gt;
> +	engine->base.uncore = i915->gt.uncore;
>   	snprintf(engine->base.name, sizeof(engine->base.name), "%s", name);
>   	engine->base.id = id;
>   	engine->base.mask = BIT(id);
> 

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the Intel-gfx mailing list