[Intel-gfx] [PATCH] drm/i915/gem: Hold the obj->vma.lock while walking the vma.list

Matthew Auld matthew.william.auld at gmail.com
Wed Dec 4 16:58:21 UTC 2019


On Wed, 4 Dec 2019 at 16:45, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> Remember to take the lock before walking the obj->vma.list so that the
> nodes do not change beneath us! E.g.,
>
> i915_gem_object_bump_inactive_ggtt: i915_gem_object_bump_inactive_ggtt:387 GEM_BUG_ON(vma->vm != &i915->ggtt.vm)
>
> Closes: https://gitlab.freedesktop.org/drm/intel/issues/691
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list