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)
commitbffa18dd0bca90112746bafd333386c71fe55efe
treeca4dd36ead9e5dc0f5d9e4506e23249940260811
parentdc6cd912c7cd83ec9859429c552b2986c0386b90
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