drm/i915: Make i915_vma.flags atomic_t for mutex reduction
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Sep 2019 09:02:43 +0000 (10:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Sep 2019 12:39:42 +0000 (13:39 +0100)
commit4dd2fbbfb532d0981b0ecd218c0597ac0047ca55
treef37e913dbc6ad76ee6230a9f1fa5d7eb12e420ed
parent0606259e3b3a1220a0f04a92a1654a3f674f47ee
drm/i915: Make i915_vma.flags atomic_t for mutex reduction

In preparation for reducing struct_mutex stranglehold around the vm,
make the vma.flags atomic so that we can acquire a pin on the vma
atomically before deciding if we need to take the mutex.

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/20190911090243.16786-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h
drivers/gpu/drm/i915/selftests/mock_gtt.c