[Intel-gfx] [PATCH 5/5] drm/i915: Split ctx timestamp selftest into two

Chris Wilson chris at chris-wilson.co.uk
Tue Apr 21 13:35:59 UTC 2020


Quoting Mika Kuoppala (2020-04-21 14:16:33)
> @@ -4774,6 +4773,12 @@ static int live_lrc_timestamp(void *arg)
>                 unsigned long heartbeat;
>                 int i, err = 0;
>  
> +               if (rcs && data.engine->class != RENDER_CLASS)
> +                       continue;
> +
> +               if (!rcs && data.engine->class == RENDER_CLASS)
> +                       continue;

At least have a bit of finesse and do
if (!(class & BIT(data.engine->engine->class)))
	continue;


More information about the Intel-gfx mailing list