[igt-dev] [PATCH i-g-t] tests/intel/gem_eio: Skip stress test on BCS0 for MTL

Andrzej Hajda andrzej.hajda at intel.com
Mon Oct 9 12:11:39 UTC 2023



On 02.10.2023 12:48, Nirmoy Das wrote:
> We do GGTT update on MTL using bcs engine, blocking that would
> fail the test so skip such subtests on bcs engine for MTL.
>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>

Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>

Regards
Andrzej
> ---
>   tests/intel/gem_eio.c | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/tests/intel/gem_eio.c b/tests/intel/gem_eio.c
> index 6d4b8f7df..99891ad15 100644
> --- a/tests/intel/gem_eio.c
> +++ b/tests/intel/gem_eio.c
> @@ -1111,8 +1111,16 @@ static void test_reset_stress(int fd, unsigned int flags)
>   	const intel_ctx_t *ctx0 = context_create_safe(fd);
>   	uint64_t ahnd = get_reloc_ahnd(fd, ctx0->id);
>   
> -	for_each_ring(e, fd)
> +	for_each_ring(e, fd) {
> +		struct intel_execution_engine2 engine;
> +
> +		engine = gem_eb_flags_to_engine(eb_ring(e));
> +
> +		if (gem_engine_can_block_ggtt_binder(fd, &engine))
> +			continue;
> +
>   		reset_stress(fd, ahnd, ctx0, e->name, eb_ring(e), flags);
> +	}
>   
>   	intel_ctx_destroy(fd, ctx0);
>   	put_ahnd(ahnd);



More information about the igt-dev mailing list