]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Teach restore-gtt to walk the ggtt vma list not the object list
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 08:28:56 +0000 (09:28 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 14:16:07 +0000 (15:16 +0100)
commit24447a37aa6472a56fe05a0873974dc952f3005f
tree0a9a7d60e2ec43f4f7c3214558047267966e0f06
parent7945c81adea38d14f5eb65fed05d8b189a892770
drm/i915/gtt: Teach restore-gtt to walk the ggtt vma list not the object list

In preparation, for having non-vma objects stored inside the ggtt, to
handle restoration of the GGTT following resume, we need to walk over
the ggtt address space rebinding vma, as opposed to walking over bound
objects looking for ggtt entries.

v2: Skip objects only bound for the aliasing_ppgtt

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20180605082856.19221-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c