]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Remove local entries from GGTT on suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 May 2020 08:24:27 +0000 (09:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 May 2020 15:55:15 +0000 (16:55 +0100)
commit7f2c865db203b110e8698770f27b69c17fe46601
treeca4dd36ead9e5dc0f5d9e4506e23249940260811
parent5bd50f4e244661917117c2ae8deeb76d8db48eda
drm/i915/gt: Remove local entries from GGTT on suspend

Across suspend/resume, we clear the entire GGTT and rebuild from
scratch. In particular, we want to only preserve the global entries for
use by the HW, and delay reinstating the local binds until required by
the user. This means that we can evict any local binds in the global GTT,
saving any time in preserving their state, as they will be rebound on
demand.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/1947
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200528082427.21402-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h