[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_schedule: Resolve missing context for independent subtest

Dixit, Ashutosh ashutosh.dixit at intel.com
Mon Aug 30 20:47:18 UTC 2021


On Mon, 30 Aug 2021 13:00:37 -0700, Arjun Melkaveri wrote:
>
> Resolved missing context id in exec buf, and passing created context
> to igt spin .
> This change would fix test assertion in gem_execbuf for independent
> subtest
>
> v2: Passing original ctx id to gem_execbuf

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

> Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
>  tests/i915/gem_exec_schedule.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
> index 62d616f3..1f6f71db 100644
> --- a/tests/i915/gem_exec_schedule.c
> +++ b/tests/i915/gem_exec_schedule.c
> @@ -390,6 +390,7 @@ static void independent(int fd, const intel_ctx_t *ctx, unsigned int engine,
>			struct drm_i915_gem_execbuffer2 eb = {
>				.buffer_count = 1,
>				.buffers_ptr = to_user_pointer(&spin->obj[IGT_SPIN_BATCH]),
> +				.rsvd1 = ctx->id,
>				.flags = e->flags,
>			};
>			gem_execbuf(fd, &eb);
> --
> 2.25.1
>


More information about the igt-dev mailing list