drm/i915/gt: Skip trying to unbind in restore_ggtt_mappings
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jan 2020 11:04:00 +0000 (11:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jan 2020 14:48:34 +0000 (14:48 +0000)
commit80e5351df13a5c4e9ecc14a58fa60c84d356ee87
treeaa031a3823d5a4499b67f516b88e6a615ddc5b62
parentd0208cfa5f15473988e531ea36ed10e7c62cab1f
drm/i915/gt: Skip trying to unbind in restore_ggtt_mappings

Currently we first to try to unbind the VMA (and lazily rebind on next
use) as an optimisation during restore_ggtt_mappings. Ideally, the only
objects in the GGTT upon resume are the pinned kernel objects which
can't be unbound and need to be restored. As the unbind interferes with
the plan to mark those objects as active for error capture, forgo the
optimisation.

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/20200110110402.1231745-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt.c