[Intel-gfx] [PATCH] drm/i915: drop duplicate ggtt vma list add in setup_global_gtt

Daniel Vetter daniel at ffwll.ch
Wed Nov 13 01:06:06 CET 2013


On Tue, Nov 12, 2013 at 11:58:08PM +0000, Chris Wilson wrote:
> On Tue, Nov 12, 2013 at 02:53:08PM -0800, Jesse Barnes wrote:
> > Preallocated, stolen objects will already be added to this list when we
> > first create them.
> 
> That had me scratching my head a bit trying to work out where and why
> stolen objects were explicitly adding themselves to the obj->vma_list.
> 
> "Preallocated objects will already have been added to the vma_list when
> creating their ggtt vma entry, and coincidentally also marked as holding
> a ggtt mapping. Repeating the vma_list manipulation when setting up the
> ggtt after preallocation is a recipe for an unhappy kernel."

Agreed.
> 
> > 
> > Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list