[PATCH I-G-T v4] tests/intel/i915_hangman: Fix spin engine hang
Krzysztof Karas
krzysztof.karas at intel.com
Mon Dec 16 13:42:37 UTC 2024
Hi Mikolaj,
> +static bool is_rcs_ccs(const struct intel_execution_engine2 *e)
> +{
> + return e->class == I915_ENGINE_CLASS_COMPUTE ||
> + e->class == I915_ENGINE_CLASS_RENDER;
> +}
> +
> static void
> test_engine_hang(const intel_ctx_t *ctx,
> const struct intel_execution_engine2 *e, unsigned int flags)
> @@ -388,6 +394,10 @@ test_engine_hang(const intel_ctx_t *ctx,
> */
> num_ctx = 0;
> for_each_ctx_engine(device, ctx, other) {
> + /* Wa_14014494547:DG2 */
> + if (IS_DG2(intel_get_drm_devid(device)) && is_rcs_ccs(other))
In previous version of this patch there were also checks to confirm
that:
1) the current engine is one of the two types,
2) the engines are different.
Are those redundant now?
Krzysztof
> + continue;
> +
> local_ctx[num_ctx] = intel_ctx_create(device, &ctx->cfg);
> context_unban(device, local_ctx[num_ctx]->id);
> ahndN = get_reloc_ahnd(device, local_ctx[num_ctx]->id);
> --
> 2.47.1
>
More information about the igt-dev
mailing list