[Intel-gfx] [PATCH] drm/i915: Pin the context as we work on it

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 7 15:46:24 UTC 2020


Quoting Chris Wilson (2020-01-07 15:44:07)
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index 0ac98e39eb75..db184536acef 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -321,16 +321,15 @@ static void print_context_stats(struct seq_file *m,
>  
>                 for_each_gem_engine(ce,
>                                     i915_gem_context_lock_engines(ctx), it) {
> -                       intel_context_lock_pinned(ce);
> -                       if (intel_context_is_pinned(ce)) {
> +                       if (intel_context_pin_if_active(ce)) {
>                                 rcu_read_lock();

Yeah, we probably don't need the rcu lock here anymore :)
-Chris


More information about the Intel-gfx mailing list