Re: [PATCH 5/5] drm/i915: Replace i915_vma_put_fence()

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

 



Quoting Matthew Auld (2019-08-21 22:05:55)
> On Wed, 21 Aug 2019 at 16:59, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Avoid calling i915_vma_put_fence() by using our alternate paths that
> > bind a secondary vma avoiding the original fenced vma. For the few
> > instances where we need to release the fence (i.e. on binding when the
> > GGTT range becomes invalid), replace the put_fence with a revoke_fence.
> >
> > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> 
> <snip>
> 
> > @@ -557,20 +553,16 @@ i915_gem_gtt_pwrite_fast(struct drm_i915_gem_object *obj,
> >                 wakeref = intel_runtime_pm_get(rpm);
> >         }
> >
> > -       vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0,
> > -                                      PIN_MAPPABLE |
> > -                                      PIN_NONBLOCK /* NOWARN */ |
> > -                                      PIN_NOEVICT);
> > +       vma = ERR_PTR(-ENODEV);
> > +       if (i915_gem_object_is_tiled(obj))
> > +               vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0,
> 
> Hmm?

Well spotted. Just shows how often we hit this path!
-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