]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Mark ring->vma as active while pinned
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jan 2020 11:04:02 +0000 (11:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jan 2020 14:48:35 +0000 (14:48 +0000)
commit1bfafdffdba199b5d71491dcebea3745523904d4
tree7af1b1a10d8fb31f2b441ce869489bd3e97ee95d
parent03e72ac3a90e26db86e7080c7ab7f377aea0a8c4
drm/i915/gt: Mark ring->vma as active while pinned

As we use the active state to keep the vma alive while we are reading
its contents during GPU error capture, we need to mark the
ring->vma as active during execution if we want to include the rinbuffer
in the error state.

Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: a114d350b3b3 ("drm/i915: Coordinate i915_active with its own mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200110110402.1231745-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c