]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Differentiate between ggtt->mutex and ppgtt->mutex
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 21:59:56 +0000 (21:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 22:57:28 +0000 (22:57 +0000)
commit8ba475d269c9b877bf579db075d875fe49c45a7e
tree77173972b347cca9bcb1127992f6d7bfdb5438f2
parentf8bdccd60cf89edec27d82a163fa9169f5aa461f
drm/i915: Differentiate between ggtt->mutex and ppgtt->mutex

We have two classes of VM, global GTT and per-process GTT. In order to
allow ourselves the freedom to mix both along call chains, distinguish
the two classes with regards to their mutex and lockdep maps.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190114215956.32266-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/selftests/mock_gtt.c