]> 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)
commit744799850ef1cb053457a8a7652165e895ea26a0
tree0a9a7d60e2ec43f4f7c3214558047267966e0f06
parentd901e8e6733544e772713a23ab345eb79153de8c
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