[igt-dev] [PATCH i-g-t v4 18/56] tests/gem_exec_balancer: Adopt to use allocator

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Aug 6 21:48:19 UTC 2021


On Fri, 06 Aug 2021 06:41:07 -0700, Zbigniew Kempczyński wrote:
>
> For newer gens we're not able to rely on relocations. Adopt to use
> offsets acquired from the allocator.

One minor fix below, with that:

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

> @@ -1334,11 +1347,13 @@ static void __bonded_nohang(int i915, const intel_ctx_t *ctx,
>	};
>	igt_spin_t *time, *spin;
>	const intel_ctx_t *load;
> +	uint64_t ahnd0 = get_reloc_ahnd(i915, 0), ahnd;
>
>	load = ctx_create_balanced(i915, siblings, count);
>	gem_context_set_priority(i915, load->id, 1023);
> +	ahnd = get_reloc_ahnd(i915, ctx->id);

ahnd = get_reloc_ahnd(i915, load->id);

>
> -	spin = igt_spin_new(i915, .ctx = load, .engine = 1);
> +	spin = igt_spin_new(i915, .ahnd = ahnd, .ctx = load, .engine = 1);


More information about the igt-dev mailing list