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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux