Re: [Intel-gfx] [PATCH 11/22] drm/i915: Wrap vma->pin_count accessors with small inline helpers

2016-07-29 Thread Chris Wilson
On Fri, Jul 29, 2016 at 09:59:31AM +0300, Joonas Lahtinen wrote: > On ke, 2016-07-27 at 12:14 +0100, Chris Wilson wrote: > > @@ -3810,10 +3810,11 @@ i915_gem_object_ggtt_unpin_view(struct > > drm_i915_gem_object *obj, > >  { > >   struct i915_vma *vma = i915_gem_obj_to_ggtt_view(obj, view); > >

Re: [Intel-gfx] [PATCH 11/22] drm/i915: Wrap vma->pin_count accessors with small inline helpers

2016-07-29 Thread Joonas Lahtinen
On ke, 2016-07-27 at 12:14 +0100, Chris Wilson wrote: > @@ -3810,10 +3810,11 @@ i915_gem_object_ggtt_unpin_view(struct > drm_i915_gem_object *obj, >  { >   struct i915_vma *vma = i915_gem_obj_to_ggtt_view(obj, view); >   > - WARN_ON(vma->pin_count == 0); > + GEM_BUG_ON(!vma); > +

[Intel-gfx] [PATCH 11/22] drm/i915: Wrap vma->pin_count accessors with small inline helpers

2016-07-27 Thread Chris Wilson
In the next few patches, the VMA pinning API is overhauled and to reduce the churn we pull out the update to the accessors into a prep patch. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_debugfs.c| 2 +- drivers/gpu/drm/i915/i915_gem.c