]> 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)
commit223cf5b3df4abb2942f472e4c4bd4362d0427630
tree0a9a7d60e2ec43f4f7c3214558047267966e0f06
parent94fad846fdd6383397a7bdd350746421df7b7be9
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