]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 13 Jan 2020 12:17:55 +0000 (14:17 +0200)
commit13fe3ec8bd06e9fdd842e79402277415f2cb8136
tree89bf65f8e97e874aaeb588ae28cdcb0e6e98ceaf
parent976e2b40bd1cd9922c0dd6e2a86c79e94974a7c7
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
(cherry picked from commit 80e5351df13a5c4e9ecc14a58fa60c84d356ee87)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c