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)
commit305dc3f9834c9df40b3f6d4a6980447fb503cfc1
tree77173972b347cca9bcb1127992f6d7bfdb5438f2
parentd8af327087f753d7cc26d813e8e5a83461d8e5c6
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