]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only activate i915_active debugobject once
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2019 13:26:31 +0000 (14:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2019 15:41:41 +0000 (16:41 +0100)
commit67639f3f6603d12c66631429dc7ad4b0c8554893
treedca39b8fe038b75ed57cb0292178a003a5fbe711
parent55f2d0b6bdf9d15b87c8e517ff1ba9d314320124
drm/i915: Only activate i915_active debugobject once

The point of debug_object_activate is to mark the first, and only the
first, acquisition. The object then remains active until the last
release.  However, we marked up all successful first acquires even though
we allowed concurrent parties to try and acquire the i915_active
simultaneously (serialised by the i915_active.mutex).

Testcase: igt/gem_mmap_gtt/fault-concurrent
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190827132631.18627-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_active.c