[Intel-gfx] [PATCH v2] drm/i915/gem: Take a copy of the engines for context_barrier_task

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 11 13:02:55 UTC 2020


Quoting Chris Wilson (2020-03-11 12:59:03)
> +static inline struct i915_gem_engines *
> +__context_engines_await(const struct i915_gem_context *ctx)
> +{
> +       struct i915_gem_engines *engines;
> +
> +       rcu_read_lock();
> +       do {
> +               engines = rcu_dereference(ctx->engines);
> +               if (!unlikely(engines))
> +                       break;
> +
> +               if (!unlikely(i915_sw_fence_await(&engines->fence)))
> +                       continue;

Pebkac.
-Chris


More information about the Intel-gfx mailing list